4 ms·
Wouldn't a better mental model be an object-as-a-process ala Smalltalk or Erlang? I personally think the object analog is a for more useful. Rather than reinv
by steego 10y ago
Wouldn't a better mental model be an object-as-a-process ala Smalltalk or Erlang?
I personally think the object analog is a for more useful. Rather than reinventing your own container composition system, you could simply adopt a dependency injection approach. It would be nice to see containers-object publish interfaces in a language/transport independent way that layers interfaces, endpoints and transport mechanisms.
- stcredzero 10y agoWasn't this the idea behind Java "Servlets" back in the day? Also, I'd say that it was process-as-an-object in Smalltalk.
- felixgallo 10y agoI agree, the actor model is a significantly more usable metaphor for containers than functions. When you start thinking about supervisor trees, you start heading towards Kubernetes, which is interesting.
- pkinsky 10y agoI think we're getting hung up on 'function' here: the article is really about the benefits of type systems (either runtime or compile time) as applied to the argument and result types of functions. The actor implementations I've used (mostly just Akka) lack strong types, but I think treating containerized apps as actors that can only send or receive specific message types would fix the problems the article brings up.