sqs-reader-service

command module
v0.0.0-...-3f72e9c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 6 Imported by: 0

README

sqs-reader-service

Simple service which is reading data from SQS and saving to DynamoDB

Testing

Unit test
make test-unit
Test all

For running all the unit and integration tests you need docker. The integration tests connecting to Localstack which is an AWS service emulator

Start localstack with docker-compose

docker-compose up

Create SQS queue and Dynamo table

scripts/localstack.sh

Run the tests

make test-all

Run the service locally

Start localstack with docker-compose

docker-compose up

Start the service

go run main.go

Run the service against AWS

  • you need a proper AWS config in your machine
  • create the env config in the config folder my_env.yaml
  • create an SQS queue on AWS and update your config with the queue name
  • create a Dynamo table on AWS and update your config with the queue name (HASH = id field)
  • export your ENV export ENV=my_env

Start the service

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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