|
|
|
|
|
by taylodl
705 days ago
|
|
Since everything gets "thrown away" as you say (though it's not per request), you actually have to focus more on caching in order to maintain any kind of session state (if required by your application). Memory leaks are an interesting matter because, you're right: you really don't care. All the pieces parts comprising your system are continually restarting without impacting the overall resiliency of the system. In fact, quite the opposite is happening - the system is more resilient due to all the mini restarts. You will have to learn techniques for handling cold starts, there's a few different ways to go about it and which one is appropriate, including not worrying about it at all, is dependent on your application and the cold load ramp-up experienced. |
|
You lose a lot of layers of caching since there's no point in it. You focus on rather poor caching, i.e. you have to use an external cache. You can't store this as part of the current session and access it for the next request, e.g. by the same user.
> you really don't care
That's on the surface. It's like having a hidden illness that only gets you when something else breaks and suddenly 100s of errors pile up.
> the system is more resilient
It pretends to be. You often get bugs that aren't so obvious and never get fixed because it's now hidden so deep.
> You will have to learn techniques for handling cold starts
The nuance here is you're learning to prefer faster cold starts at all costs including trading for warm start performance. It's making the world worse.