Skip to content

Instantly share code, notes, and snippets.

@softberries
Last active March 21, 2023 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/4e852c941bab17818458f35b7dee7048 to your computer and use it in GitHub Desktop.
Save softberries/4e852c941bab17818458f35b7dee7048 to your computer and use it in GitHub Desktop.
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