Skip to content

This is a simple experiment to test the concurrent processing using clojure.core.async channel

License

Notifications You must be signed in to change notification settings

hin522/producer-consumer-workflow

Repository files navigation

producer-consumer-workflow

This is a simple experiment to test the concurrent processing using clojure.core.async channel.

                                                  +-----------+
                                        +-------> | Processor | +------+
                                        |         +-----------+        |
                                        |         +-----------+        |
                                        +-------> | Processor | +------+
+----------+                            |         +-----------+        |                            +----------+
| Producer |      +----------------+    |         +-----------+        |    +----------------+      | Consumer |
|          | ---> | input channel  | +----------> | Processor | +---------> | output channel | ---> |          |
+----------+      +----------------+    |         +-----------+        |    +----------------+      +----------+
                                        |         +-----------+        |
                                        +-------> | Processor | +------+
                                        |         +-----------+        |
                                        |         +-----------+        |
                                        +-------> | Processor | +------+
                                                  +-----------+

How to run

$ lein repl
$ (-main [number_of_thread] [number_of_item_to_be_processed])

About

This is a simple experiment to test the concurrent processing using clojure.core.async channel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published