Skip to content

SurkovIlya/message-handler-app

Repository files navigation

message-handler-app

A local option to launch the application and work with it:

Requirements

  • Docker and Go

Usage

Clone the repository with:

git clone github.com/SurkovIlya/message-handler-app

Copy the env.example file to a .env file.

cp .env.example .env

Update the postgres variables declared in the new .env to match your preference.

Build and start the services with:

docker-compose up --build

Message-handler-app API

{message-handler-app-host}/v1/receiving - send message in app

Method: POST

Request:

{
	"value": "New message..."
}

Response:

"OK"

{message-handler-app-host}/v1/getstatistics - Getting statistics on processed messages

Method: GET

Response:

{
	"handled": 7, // - count of messages processed
	"inProcess": 0 // - count of unprocessed messages
}

Checking the service under load

If you need to check the service under load, you can use github.com/SurkovIlya/dudoser

About

App for message processing using Kafka and Postgresql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published