Hi everyone,
I'm working on a use case and wanted to check whether KrakenD can support this pattern using standard features, minimal scripting, or native configuration (without resorting to a custom Go plugin).
Use case:I want to build a single endpoint that involves two backends:
BE1: Returns a list of IDs
Example response: ["id1", "id2", "id3"]
BE2: For each ID returned by BE1, I need to make an individual request to BE2 in the format:
These calls should:
Be made in parallel
Have their results cached per ID, so repeated requests for the same ID can reuse the cached response
Finally, the results from all BE2 calls should be aggregated along with the original BE1 response.
I understand this is possible with a custom Go plugin, but I’d prefer to use built-in KrakenD functionality if possible—whether that’s through declarative configuration, Lua scripting, or other features.
Any guidance or examples would be greatly appreciated!