In this example we are going to create a application-to-application (A2A) communication. Both applications are HTTP APIs. The client (publisher) dispatches events (image upload or download) and server (subscriber) listens on the events to handle them. We have two event types which are upload
and download
. Both of these are linked to image
topic.
We are benefiting from topic filters because:
Subscribers are semantically related to each other.
Subscribers consume similar types of events.
Subscribers are supposed to share the same access permissions on the topic.
Create a topic.
Run server.
Subscribe server to the topic.
Client produces events.
#aws #golang #aws sns #api