How do i choose between a single complex api endpoint and multiple simpler ones?
#1
I'm trying to decide if I should use a single, more complex endpoint that returns everything my app needs or break it into several simpler ones. The all-in-one approach feels efficient for the client but makes the server logic heavy and caching tricky.
Reply
#2
I started with all in one. It felt slick until caching blew up and the server got bloated trying to assemble everything.
Reply
#3
We broke it into smaller pieces and suddenly caching got predictable, and we could deploy parts without touching the whole thing.
Reply
#4
Sometimes the issue isn't the number of calls but the data contract; small changes ripple through all the dependents, no one's happy.
Reply
#5
I keep thinking we might be chasing speed over resilience, and I'm not sure the problem is the calls at all. Do you think the real bottleneck is something else?
Reply


[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: