Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maticapuano/poc-queues
This is a simple example of a queue system using Queue and Redis.
https://github.com/maticapuano/poc-queues
nestjs queue typescript
Last synced: about 2 months ago
JSON representation
This is a simple example of a queue system using Queue and Redis.
- Host: GitHub
- URL: https://github.com/maticapuano/poc-queues
- Owner: maticapuano
- Created: 2022-08-12T16:06:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T20:38:12.000Z (almost 2 years ago)
- Last Synced: 2023-08-13T00:29:27.878Z (over 1 year ago)
- Topics: nestjs, queue, typescript
- Language: TypeScript
- Homepage:
- Size: 1.44 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# POC Queues
This is a simple example of a queue system using Queue and Redis.
## Diagram Context
![Diagram](https://i.imgur.com/inNo8mq.png)
## Prerequisites
- [Redis](https://redis.io/)
- [Node.js](https://nodejs.org/)
- [Docker](https://www.docker.com/)## Installation
First start a Redis server on your local machine.
```bash
docker run -d -p 6379:6379 redis
```Then install the dependencies:
```bash
cd /poc-consumer
npm install
``````bash
cd /poc-producer
npm install
```## Running the producer
```bash
cd /poc-producer
npm start
```## Running the consumer
```bash
cd /poc-consumer
npm start
```## Execute the producer in a separate terminal
| Method | Endpoint | Description |
| ------ | -------- | ---------------------------- |
| GET | /pull | Send a message to the queue. |## Notes
Please note that the consumer will only process messages that are available in the queue.
## Collaborators
[Matías Capuano](https://github.com/maticapuano)
[Gonzalo Telesio](https://github.com/telesiog)