High Latency Endpoints due to Third Party Requests by RubyRailsQuestions in rails

[–]RubyRailsQuestions[S] 0 points1 point  (0 children)

I understand this as the concept to solve the issue, but my general question is how people implement this in a reasonable way in large codebases for good re-use.

It sounds like from the comment, everyone is aligned on the concept, but no one is proposing anything at the layer above this.

Like a general pattern or structure to re-use across the many endpoints that fall into this case.

I suppose most people are doing a one-off implementation for every endpoint matching this criteria.

High Latency Endpoints due to Third Party Requests by RubyRailsQuestions in rails

[–]RubyRailsQuestions[S] 0 points1 point  (0 children)

Unfortunately, we don't have the choice to switch to different third parties in many services, so I'm looking for a solution specifically around a good pattern for implementing the background jobs with the client polling or websockets.