Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should we have a small DSL to create an app more quickly? #40

Open
plastic-karma opened this issue Dec 24, 2020 · 0 comments
Open

should we have a small DSL to create an app more quickly? #40

plastic-karma opened this issue Dec 24, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@plastic-karma
Copy link
Collaborator

Instead of doing all of the initialization steps, maybe it is worth having a small DSL like so:

app {
     queue {
           url = "https://sqs.us-east-1.amazonaws.com/777777777777/my-awesome-queue"
     }
     fetcher {
           maximumNumberOfMessages = 10,
           waitTimeSeconds= 20,
           visibilityTimeoutSeconds = 30
     }
     provider {
          parallelism = 10
     }
     consumer {
          messageProcessor = MyAwesomeMessageProcessor()
          parallelism = 10
     }
     addShutdownHook = true
}.start()
@plastic-karma plastic-karma added the enhancement New feature or request label Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant