How to ensure that user uses only one function with lambda auto scaling enabled

Hello,
I would like to use in-memory cache to store user data with lambda auto scale enabled. Is there a “sticky session” to ensure that user’ ll use only one clone of the function during session, pls? I’ll use a function for graphQL api so with 50+ active users I predict, that function’ ll stay hot for longer time…
Thank you!

Security background includes not terminating cables properly, keeping servers off as much as possible, AND in the event of a cyber attack, “break glass and pull cables” is basically muscle memory by 9Apps Showbox Tutuapp now…

If the data you’re going to store is not large, you can use the /tmp folder of lambda to save info on the same context execution. However user data will need to be recached when another lambda execution is spawned (possibly due to autoscaling or being idle for too long). If you want a more persistent cache, try attaching an efs to ur lambda which will be shared by all executions or maybe you can use elasticache?