Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

[FORMULA] Messaging Queue Mock builder #22

Open
douglasvinter opened this issue Apr 28, 2020 · 1 comment
Open

[FORMULA] Messaging Queue Mock builder #22

douglasvinter opened this issue Apr 28, 2020 · 1 comment
Labels
good first issue Good for newcomers Hacktoberfest https://hacktoberfest.digitalocean.com/

Comments

@douglasvinter
Copy link
Contributor

douglasvinter commented Apr 28, 2020

What would you like to be added:

  • I'd like to ask for a mock queue command, which would make easier to create scenarios for the consumer/producer services patterns.
  • This would be great for: Developer, Debugging, Testing (Manually or CI integrated - E2E testing)
  • Popular queues/messaging: Sqs, Kafka, ZeroMQ, RabbitMq, AMQP

Instructions (Using SQS as example):

As a User, I'd like to create a FIFO queue for testing a producer integration with SalesForce.

What I'd need to do without ritchie:

  • Knowledge in AWS CLI
  • Knowledge in docker
  • Find out an sqs container (alpine/sqs) and creating a yaml for that
  • Knowledge to parse my JSON files to the AWS CLI add the messages to the queue
  • If I do not know the previous step, I'd need to run the producer and insert it

How ritchie can help me:

  • Command name (suggestion) rit create mock queue sqs
  • Would read a sqs-config.json

// Suggesting a generic config file, you could use the same JSON schema template for kafka, i.e: kafka-config.json
sqs-config.json

{
	docker: {
		port
		volume
		etc ..
	}
	queue: {
		type: ENUM -> SQS_STANDARD|SQS_FIFO|KAFKA_TOPIC|ZMQ_DEALER|ZMQ_SUBSCRIBER|ZMQ_TOPIC
	}
	data: [
		{key: value} <= Producer data that would be sent to the queue
	]
}

The data would be inserted in my SQS FIFO Queue, so I'd just need to RUN my producer and checkout the logs / SalesForce

Why is this needed:

  • This could save a lot of trouble/time setting up a Queue for testing & developing purposes
  • This could be integrated on a CI for E2E testing
  • Less infrastructure knowledge required for the developer/tester
@douglasvinter douglasvinter added the feature New feature or enhancement request label Apr 28, 2020
ayala-borba pushed a commit that referenced this issue May 2, 2020
@viniciusramosdefaria viniciusramosdefaria added the good first issue Good for newcomers label Jul 16, 2020
@GuillaumeFalourd GuillaumeFalourd added Hacktoberfest https://hacktoberfest.digitalocean.com/ and removed feature New feature or enhancement request labels Sep 16, 2020
@GuillaumeFalourd GuillaumeFalourd changed the title [FEATURE] Messaging Queue Mock builder [NEW FORMULA] Messaging Queue Mock builder Sep 16, 2020
@GuillaumeFalourd GuillaumeFalourd changed the title [NEW FORMULA] Messaging Queue Mock builder [FORMULA] Messaging Queue Mock builder Sep 16, 2020
@fabianofernandeszup
Copy link
Contributor

Issue prioritized by the Adoption team

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
good first issue Good for newcomers Hacktoberfest https://hacktoberfest.digitalocean.com/
Projects
None yet
Development

No branches or pull requests

4 participants