So, when should you switch from sync API calls to async?
Ulrik Christensen
·6155 views
We're working on a new feature that needs to hit a few outside APIs. Right now, we're planning to just make those calls one after another while the user's request is happening. But, I'm starting to second-guess if that's the best way to do it long-term. If one of those outside APIs is sluggish, it's going to make our app feel slow for users. Are there any specific speed limits, or certain kinds of tasks, where you'd really push for us to switch to doing things in the background, maybe with a message queue, even if it makes things a bit more complicated to set up at first?
23 comments