Last active
March 21, 2023 14:43
-
-
Save softberries/4e852c941bab17818458f35b7dee7048 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyBroadway do | |
# behaviour impl, aliases and imports ... | |
def start_link(_opts) do | |
Broadway.start_link(__MODULE__, | |
name: __MODULE__, | |
producer: [ | |
# producer configuration | |
], | |
processors: [ | |
default: [concurrency: 1] | |
], | |
batchers: [ | |
default: [concurrency: 1] | |
] | |
) | |
end | |
# handler methods .. | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment