I wonder if this is something web assembly can help with. I suppose it comes down to, what’s the most lean abstraction to wrap your code that can guarantee “write once run anywhere”. Docker is supposed to solve this problem, but running multiple containers can be daunting and resource heavy.
On a side note, this last year I had the displeasure of developing on an existing all serverless ETL system with 30+ lambdas all hooked together in confusing ways. Debugging was a nightmare. In the future I will try to avoid any project that requires me to dev in a non-local environment, unless there’s a platform team that’s producing tools to improve the developer experience .