https://supertokens.com/ logo
horizontal scaling
v

vigneshkumar

04/13/2023, 12:10 PM
Hi @rp, Can we horizontally scale supertokens, and as far as my knowledge when I tried to see what supertokens-core is doing, It generates tokens and maintain it in memory right? so how can it be working if it needed to be scaled?
r

rp

04/13/2023, 12:11 PM
hey @vigneshkumar you can horizontally scale the core. We only cache the signing keys in memory.
v

vigneshkumar

04/13/2023, 12:20 PM
so how does the validation of tokens take place when it comes from the cookie to the core? and I'm facing the following error when I try to run supertoken-core from the local system.
A problem occurred evaluating root project 'supertokens-core'.
> Project with path ':supertokens-plugin-interface' could not be found in root project 'supertokens-core'.
Can you share any links that talks about scalability of supertoken core?
r

rp

04/13/2023, 12:23 PM
> and I'm facing the following error when I try to run supertoken-core from the local system. Are you trying to build from source?
> Can you share any links that talks about scalability of supertoken core? We don't have anything written about it, but just add as many cores as you want in front of a load balancer. One core in t2.micro EC2 instance is enough to handle 100k MAUs.
v

vigneshkumar

04/13/2023, 12:41 PM
Okay Thanks. so how does the validation of tokens take place when it comes from the cookie front end to the core?
r

rp

04/13/2023, 12:42 PM
cookie validation happens in the backend SDK layer.
backend sdk
v

vigneshkumar

04/13/2023, 12:57 PM
Do we have any reference for this please?
r

rp

04/13/2023, 12:57 PM
no reference. Sorry
see our code base. It's open source
v

vigneshkumar

04/13/2023, 12:58 PM
I thought the accesstoken validation is called in the backend sdk which in turn calls the core to verify. So I will refer. Thanks