Matt Massicotte on Nostr: This is a fantastic question! Pro: actors protect all their state! Con: all input and ...
This is a fantastic question!
Pro: actors protect all their state!
Con: all input and output to the actor must be Sendable *and* async too!
Those cons are huge. And you often don't need to protect state so granularly anyways. I often reach for actors last, and only when I have a clear idea of why I need it.
https://mastodon.social/@maxmelzer/112089570951772375Published at
2024-03-13 17:35:22Event JSON
{
"id": "721184c02a72575ed367d27c9ac008db178ec956581bc4bc77c8fd6327f84b69",
"pubkey": "326c9100a3d1f1ecd0d35bf9590b2633e6c22a25debb08aac79d5af903bd8672",
"created_at": 1710351322,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/mattiem/statuses/112089584252615190",
"activitypub"
]
],
"content": "This is a fantastic question!\n\nPro: actors protect all their state!\nCon: all input and output to the actor must be Sendable *and* async too!\n\nThose cons are huge. And you often don't need to protect state so granularly anyways. I often reach for actors last, and only when I have a clear idea of why I need it.\n\nhttps://mastodon.social/@maxmelzer/112089570951772375",
"sig": "5f0026dcfe907cabaf3e6324244baec64b49dbeeba2ea8ab9e8b7f9f03973b12cf989bf1d6aaa66fe0482eadd0e091924d2ba1e6571f32d151f13f72515209eb"
}