c# – Is RabbitMQ necessary for the project I want to write?

I’m writing a project but I can’t decide if I need RabbitMQ here.

I have an api that accepts tickets. Here I accept an object with only 2 properties. I need to write this to the database and then check if the tickets are canceled every 10 minutes and delete the canceled ones. I am stuck between 2 options.

The first is to write the incoming tickets directly to the database and check those tickets every 10 minutes with a background job and delete the canceled ones.

The second option is to send the incoming tickets to RabbitMQ and then read the tickets from that RabbitMQ from the job and write the ones that have not been canceled to the database.

Which of these 2 options is better? Will RabbitMQ produce a noticeable performance here? Or in this case I don’t need it? Please note that up to 10,000 tickets can be posted to me per day.

If RabbitMQ absolutely needs it, RabbitMQ sends the message it receives that minute, and I need to receive and check it 10 minutes later. Is there a configuration in RabbitMQ that adjusts this? Because it doesn’t matter if the ticket comes to me at that moment, can RabbitMQ send a message repeatedly after a certain time? I only need to check after 10 minutes and then delete from RabbitMQ.

Thanks

Read more here: Source link