Skip to content

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

@plastic-karma

Description

@plastic-karma

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions