by capableweb · 3y ago · 0 comments
Granted, there are a few cpu-heavy processes that do benefit to being split out, like image/video re/encoding, but if you're just doing "normal" stuff, it's faster, easier to maintain and cheaper to just have a function call instead of a "service" call.
Our team write everything in the main server except tasks that choke up the main server. For example, we have a need to process many CSV files from users. We put this processing on Lambda and it can scale to hundreds of Lambdas at a time. Scaling our main server would be very uneconomical.
Latency is not a problem because these services usually live in the same datacenter and the latency is very little compared to the processing time.
https://blog.appsignal.com/2020/04/08/the-citadel-architectu...