3 ms·
It's not a web system but Mac OS messed it up once: https://objective-see.com/blog/blog_0x24.html https://objective-see.com/blog/blog_0x24.html Caching could b
by bellyfullofbac 5y ago
It's not a web system but Mac OS messed it up once: https://objective-see.com/blog/blog_0x24.html https://objective-see.com/blog/blog_0x24.html
Caching could be an issue, if they added a cache for a microservice call of /get/user?id=$USER and ignored the id parameter, /get/user?id=ipsin fetches data for the user ipsin, the system sees the next call /get/user?id=bellyfullofbac and thinks, "Wait, I have the results of /get/user in cache" and returns the data for ipsin again...
- chrisandchris 5y agoBesides having the HTTP verb in the URL (GET -> /get/), why would you put the id in the query? Why not just use GET /user/1234 instead of duplicating things by using GET /get/user?id=1234 . What does GET /get/user then even return, all users, no user, ...? Edit: typo
- bellyfullofbac 5y agoIt's just an example...