sam-goodwin / eventual

Build scalable and durable micro-services with APIs, Messaging and Workflows
https://docs.eventual.ai
MIT License
174 stars 4 forks source link

feat: service content in handlers #343

Closed thantos closed 1 year ago

thantos commented 1 year ago

Adds context.service.serviceName and context.service.serviceUrl to most of the handlers.

Left out of workflows for now as the url may not be deterministic. Transactions will only get the name as the url is not currently send to it and transactions should not make API requests...

command and apis will now always have the CommandContext interface for a content, middleware can add to this interface or change values inside of it.