A shopping API runs fine on a single server. The team adds a…
A shopping API runs fine on a single server. The team adds a second identical server behind a load balancer, and users start reporting that items disappear from their carts at random. Cart contents are held in the memory of whichever server first handled that user. Which REST principle is being violated, and what is the fix?
Read DetailsA client sends a request to retrieve a protected resource fr…
A client sends a request to retrieve a protected resource from an API, but the server determines that the client has not provided valid authentication credentials. Which HTTP status code from lecture would most appropriately communicate this result?
Read DetailsA dashboard shows a live count of open support tickets. It k…
A dashboard shows a live count of open support tickets. It keeps the number current by reloading the entire page every ten seconds. Users complain that the page jumps back to the top while they are reading, and that anything typed into the filter box gets wiped out. Based on the reasoning behind AJAX, what is the right change?
Read Details