🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/Lucasdev2005/golang-async-jobs

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Lucasdev2005/golang-async-jobs

v0.0.0-20240402162700-5c05bc8e61e3
Source
Go
Version published
Created
Source

golang-async-jobs

a simple example project, of a Go api implementation with RabbitMQ. I divided the project into two contexts. Publishers, responsible of publish messages on message broker (in this case i used rabbitMQ) and Consumers, responsible of consume and remove messages from the queue.

Prepare ambient from devs

This will prepare your environment with all the necessary dependencies for development. (RabbitMQ, PostgresSQL)

  • Run docker compose -f docker-compose-develop.yaml up -d to setup Database and rabbitMQ.
  • Run go run internal/consumer/consumer.go to run Consumers.
  • Run go run internal/publisher/publisher.go to run Publishers.

Load Test

this will setup ambient with all dependecies (RabbitMQ, PostgresSQL, Grafana and K6) and running the Load Test file.

  • Make sure your machine have docker and docker compose.
  • Run sh run-load-test.sh

FAQs

Package last updated on 02 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts