Hello! I’m building a finance related app, and have one endpoint that:
- accepts input
- collects data from multiple REST endpoints with the input
- saves the data to my db for later access
- returns the data to the user
I’ve managed to do it by simply putting all of it in rails, but my app is getting a lot of users now and I’m getting problems on peak times.
I’ve looked into background jobs (sidekiq, rabbitmq) and was wondering if these were the right solutions for my problem? A background job that would trigger the REST endpoints and save it to my db?
I also want to, if possible, offer different prioritization queues to my endpoint (based on user tier) and it seems like these message queues support prioritization.