|
|
|
|
|
by kentonv
1356 days ago
|
|
You might be interested in Durable Objects, which is essentially an actor model within Workers. https://blog.cloudflare.com/introducing-workers-durable-obje... Durable Objects aren't exactly the same as Erlang actors (which is why we don't usually call them "actors" -- we found it led to some confusion), but at some level it's a similar concept. You can easily have millions of Durable Objects in a Workers-based application. Currently workerd has partial support for Durable Objects -- they work but data is stored in-memory only (so... not actually "durable"). The storage we use in Cloudflare Workers couldn't easily be decoupled from our network, but we'll be adding an alternative storage implementation to workerd soon. |
|
They remind me of this article: http://ithare.com/scaling-stateful-objects/