event-driven-architecture

command module
v0.0.0-...-5562678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 7 Imported by: 0

README

event-driven-architecture

Concept

Publisher

Publisher are responsible for messaging using Amazon SNS.

Subscriber

Subscribers are responsible for polling for queuing.

Broker

The broker is responsible for the topic (event) between the publisher and the subscriber.

Usecase

Responsible for processing dependent on your business domain.
FYI: This has nothing to do with the concept of the Event driven architecture.

Butler

Butler does chores such as creation, destruction of SNS/SQS.
FYI: This has nothing to do with the concept of the Event driven architecture.

Setup

Requires version 1.12 or higher to use go modules.

$ go version
go version go1.12.4 darwin/amd64

Since aws-sdk-go needs credentials, please set "dummy" if you use localstack.

$ cat ~/.aws/credentials

[dummy]
aws_access_key_id = dummy
aws_secret_access_key = dummy 

Run

Start docker for localstack.

$ docker-compose up -d
$ env GO111MODULE=on AWS_PROFILE=dummy go run main.go

Stop docker.

$ docker-compose down

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL