2. WHAT IS OUR SESSION CHECKS?
Javascript SDK send a session check request
SPiD backend extracts the cookie
Fetches session, client and user objects from MongoDB
Business logic validates the session and checks that the
client has access to the user
Updates the session timestamp in MongoDB
Returns some json data in a jsonp container
4. PROBLEM
Our PHP implementation does a lot of bootstrapping
Loads and initiates unnecessary functionality for each
request
Huge amount of requests to this specific endpoint
becomes a bottleneck
Potentially called for each pageview on our clients.
9. CONCLUSION
Solution was more complex than we initially thought. We
could have benefitted from a framework.
Callbacks vs promises and yields
Huge performance increase
Bottleneck today is Nginx (ssl termination)
ssl termination in Load Balancer