My service listens some queues on RabbitMQ. Reading one of them, I need to write data in database immediately until queue is not empty. If there are a lot of record in queue it comes as narrow spot in application between RabbitMQ and SQL Server.
How to handle this reading/writing proper? Now it looks as usual writing data in database, cause RabbitMQ throws database with messages from queue.