Optimizing Slow APIs with AWS New Application Load Balancers
One of the recent interesting challenges that we’re having at PayrollHero is how to make our core API better.
We have multiple applications and they communicate with each other through APIs. Most of these endpoints are already really fast (< ~1000ms) mostly because they’re dumb and have really simple things to do.
Then comes our core application. It’s one big, monolithic, Rails application that does most of the work. About a year ago we did some optimization work by separating the app and API to different Cloud Formations. Our front-end application was always getting affected by the slowness caused by some really slow API endpoints, so we had to find the easiest and fastest way to remedy the situation.
This is what our old core application configuration looks like (sort of).
This, for us, was good enough because:
- It separated the API from the front-end application so if there were
Continue reading →