Effect CommunityEC
Effect Community3y ago
19 replies
carlovassallo

Question about Batching Requests in Parallel HTTP Server

Hi, I have a question regarding batching. It's pretty straightforward to me that running Effect.all with a bunch of effects built using Effect.request results in batched requests. But I'm wondering if this mechanism is sophisticated enough to batch the requests made by N effects that, at some point, also use Effect.request. For example, let's say I have an HTTP server that processes incoming HTTP requests in parallel. If multiple HTTP handlers contain the same kind of request, will those requests be batched as well, or does it only work with the all method?
Was this page helpful?