JaimeStill / decentralized-staffing

PoC for structuring microservice apps and automating their infrastructure in Azure
0 stars 0 forks source link

Cross-Service Messaging Implementation #7

Open JaimeStill opened 1 year ago

JaimeStill commented 1 year ago

Evaluate different strategies for providing messaging across services (i.e. Redis vs. Azure Service Bus vs. Azure Storage Queue), and implement the best approach.

JaimeStill commented 1 year ago

In the interim, until full R&D can be conducted concerning Azure Service Bus and like technologies, implement a SignalR server that exposes channels for synchronizing data subscriptions between microservices. Should provide an API that enables listening to changes in one microservice that would affect the state of the listening microservice. Don't think too much about it as it's just a placeholder until proper cross-service communication infrastructure can be established.

Example: Submitting a Package to Staffing would also cause the service to connect to the channel associated with the received Token. Any updates to the token would be received in real time and allow appropriate reactions to be made. This way, Staffing doesn't have to explicitly interface with the initiating service.