AWS SNS vs AWS Step Features

What is the best option for coordinating tasks between microservices?

For example, if I have a microservice that processes client information and needs to notify other microservices, is it better to create a workflow (AWS steps) between microservices or use SNS?

I think AWS Steps will link my lambda functions, but SNS will not.

+4
source share
2 answers

AWS stepping features is a stepping machine that performs AWS Lambda functions. If your task involves doing this, then this is an action, then Step functions may be a good option. It includes logic to determine the next step and automatically processes the repetitions. This is a modern version of Amazon Simple Workflow (SWF) .

Amazon's Simple Notification Service (SNS) can also run Lambda functions, but it does not handle logic and retries. This is suitable for decoupled services, especially for forks, when several subscribers receive the same message from a topic - for example, to launch several lambda functions or send several notifications. This is basically a public / subscribe service, of which Lambda is one of the types of subscribers.

. Step, SNS. (, ), , SNS.

Step , SNS - , .

+4

, . .

, , Simple Notification Service (SNS) Amazon AWS .

, / , SNS .

" ", , ( ), , , . , SNS .

+4

Source: https://habr.com/ru/post/1674535/


All Articles