# Distributed Actors

**URL:** https://forums.swift.org/c/server/distributed-actors/79.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the Distributed Actors category](https://forums.swift.org/t/about-the-distributed-actors-category/52758)

<div class="topic-metadata">

**Author:** [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Replies:** 0

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.) Use the following paragraphs for a longer d…

---

## [Event sourcing](https://forums.swift.org/t/event-sourcing/68451)

<div class="topic-metadata">

**Author:** [@jaleel](https://forums.swift.org/u/jaleel)\
**Replies:** 13\
**Last updated:** [September 24, 2026, 12:54pm UTC](https://forums.swift.org/t/event-sourcing/68451 "2026-09-24T12:54:42Z")

</div>

Hey everyone! I'm in the process of cracking event sourcing for DA for my needs (e.g. swift-chat), which then want to decouple and create a separate package out of it. Here are a bit more information on the topic. So …

---

## [Migrating Cluster system to Swift structured concurrency](https://forums.swift.org/t/migrating-cluster-system-to-swift-structured-concurrency/83447)

<div class="topic-metadata">

**Author:** [@jaleel](https://forums.swift.org/u/jaleel)\
**Replies:** 3\
**Last updated:** [February 11, 2026, 9:57am UTC](https://forums.swift.org/t/migrating-cluster-system-to-swift-structured-concurrency/83447 "2026-02-11T09:57:46Z")

</div>

Last and this year I had some progress in developing examples (e.g. swift-chat) or brief prototypes \[1\] of extension plugins on cluster system, like event sourcing and virtual actors. Also with the help of community we'r…

---

## [Guidance with distributed actors](https://forums.swift.org/t/guidance-with-distributed-actors/79659)

<div class="topic-metadata">

**Author:** [@zaneenders](https://forums.swift.org/u/zaneenders)\
**Replies:** 4\
**Last updated:** [May 8, 2025, 7:58pm UTC](https://forums.swift.org/t/guidance-with-distributed-actors/79659 "2025-05-08T19:58:11Z")

</div>

Hi :waving\_hand:, I have been playing around with the swift-distributed-actors and swift-cluster-membership packages a bit and having fun so far, just had a few questions if anyone could give me a poke in the right dire…

---

## [\`RemoteCallTarget\` from stable names](https://forums.swift.org/t/remotecalltarget-from-stable-names/79693)

<div class="topic-metadata">

**Author:** [@stevapple](https://forums.swift.org/u/stevapple)\
**Replies:** 1\
**Last updated:** [May 7, 2025, 6:04am UTC](https://forums.swift.org/t/remotecalltarget-from-stable-names/79693 "2025-05-07T06:04:11Z")

</div>

Hello Swift Forums, Dating back to 2022 when distributed actors are officially introduced in Swift, we made the decision of using an opaque String value as the identifier of a remote call. In practice the string holds t…

---

## [Retain counting for the remote actor instance](https://forums.swift.org/t/retain-counting-for-the-remote-actor-instance/63232)

<div class="topic-metadata">

**Author:** [@ser-0xff](https://forums.swift.org/u/ser-0xff)\
**Replies:** 7\
**Last updated:** [April 3, 2025, 4:06pm UTC](https://forums.swift.org/t/retain-counting-for-the-remote-actor-instance/63232 "2025-04-03T16:06:00Z")

</div>

Hi there! We are playing with DA trying to use them in the product we build, it is not clear how to manage reference counting for remote actor instances. When we instantiate distributed actor instance in the local acto…

---

## [Beginner advice for Distributed, DistributedCluster modules](https://forums.swift.org/t/beginner-advice-for-distributed-distributedcluster-modules/72391)

<div class="topic-metadata">

**Author:** [@charlieroth](https://forums.swift.org/u/charlieroth)\
**Replies:** 12\
**Last updated:** [June 14, 2024, 11:19am UTC](https://forums.swift.org/t/beginner-advice-for-distributed-distributedcluster-modules/72391 "2024-06-14T11:19:07Z")

</div>

Hello :wave: I am very interested in what advice you can offer someone who is just getting started with the Distributed and DistributedCluster modules. I am having some trouble trying to understand what pieces of these …

---

## [Runtime extensibility via distributed actors](https://forums.swift.org/t/runtime-extensibility-via-distributed-actors/71553)

<div class="topic-metadata">

**Author:** [@pepicrft](https://forums.swift.org/u/pepicrft)\
**Replies:** 21\
**Last updated:** [May 28, 2024, 8:25pm UTC](https://forums.swift.org/t/runtime-extensibility-via-distributed-actors/71553 "2024-05-28T20:25:05Z")

</div>

Hi :wave: As developers of a Swift CLI, we need to provide extensibility to our users so that they can extend workflows with their business logic. In the past, we achieved this using system processes and standard input …

---

## [Bandwidth Usage for Distributed Actors](https://forums.swift.org/t/bandwidth-usage-for-distributed-actors/71765)

<div class="topic-metadata">

**Author:** [@rezwits](https://forums.swift.org/u/rezwits)\
**Replies:** 3\
**Last updated:** [May 16, 2024, 8:46pm UTC](https://forums.swift.org/t/bandwidth-usage-for-distributed-actors/71765 "2024-05-16T20:46:36Z")

</div>

Hi, and thanks for welcoming me to the community. I have been privately tinkering on an App/Game for a few years and finally have made some good progress with the evolution of Swift. I have some initial questions conce…

---

## [Announcing new WebSocketActors library for client/server applications](https://forums.swift.org/t/announcing-new-websocketactors-library-for-client-server-applications/68824)

<div class="topic-metadata">

**Author:** [@samalone](https://forums.swift.org/u/samalone)\
**Replies:** 5\
**Last updated:** [December 12, 2023, 4:39am UTC](https://forums.swift.org/t/announcing-new-websocketactors-library-for-client-server-applications/68824 "2023-12-12T04:39:44Z")

</div>

I think it's time to publicize my new WebSocketActors library for creating client/server applications using Swift distributed actors. The library is based on Apple's TicTacFish sample code, but adds features like: Sim…

---

## [Race condition in TicTacFish sample code?](https://forums.swift.org/t/race-condition-in-tictacfish-sample-code/68237)

<div class="topic-metadata">

**Author:** [@samalone](https://forums.swift.org/u/samalone)\
**Replies:** 9\
**Last updated:** [November 13, 2023, 4:02pm UTC](https://forums.swift.org/t/race-condition-in-tictacfish-sample-code/68237 "2023-11-13T16:02:55Z")

</div>

Folks, I think I've found a race condition in the WebSocketActorSystem+Client sample code, and could use some advice on how to fix it. I believe the startClient() function is returning the channel before it is fully upg…

---

## [Unit Testing for arm64\_32 / watchOS](https://forums.swift.org/t/unit-testing-for-arm64-32-watchos/67103)

<div class="topic-metadata">

**Author:** [@christopherweems](https://forums.swift.org/u/christopherweems)\
**Replies:** 4\
**Last updated:** [October 31, 2023, 8:12pm UTC](https://forums.swift.org/t/unit-testing-for-arm64-32-watchos/67103 "2023-10-31T20:12:19Z")

</div>

I’ve been testing using the DistributedCluster library in a watchOS app using a server-client configuration not too far off from TicTacFish. In the simulator it works great, but when I compile the app for my Series 7 wat…

---

## [Is DA Right for Web Apps?](https://forums.swift.org/t/is-da-right-for-web-apps/59928)

<div class="topic-metadata">

**Author:** [@momo](https://forums.swift.org/u/momo)\
**Replies:** 4\
**Last updated:** [August 29, 2022, 4:12pm UTC](https://forums.swift.org/t/is-da-right-for-web-apps/59928 "2022-08-29T16:12:51Z")

</div>

So I have a web app that currently loads all the data into memory and just runs using Vapor. So far so good. I prefer not to use databases. I would like to split the app to a data portion (backend) and website (front-end…

---

## [Remote target arguments not deinitialised](https://forums.swift.org/t/remote-target-arguments-not-deinitialised/64838)

<div class="topic-metadata">

**Author:** [@ser-0xff](https://forums.swift.org/u/ser-0xff)\
**Replies:** 5\
**Last updated:** [May 16, 2023, 8:16am UTC](https://forums.swift.org/t/remote-target-arguments-not-deinitialised/64838 "2023-05-16T08:16:41Z")

</div>

Hi Recently we found the strange behaviour with remote target arguments that are decoded with decodeNextArgument\<\>() In a few words the argument is a struct holding some references to the class objects, like below cla…

---

## [Distributed Actors Cluster Crashing (5.8+linux+asan+static-stdlib)](https://forums.swift.org/t/distributed-actors-cluster-crashing-5-8-linux-asan-static-stdlib/64562)

<div class="topic-metadata">

**Author:** [@mannuch](https://forums.swift.org/u/mannuch)\
**Replies:** 6\
**Last updated:** [April 24, 2023, 9:56pm UTC](https://forums.swift.org/t/distributed-actors-cluster-crashing-5-8-linux-asan-static-stdlib/64562 "2023-04-24T21:56:57Z")

</div>

Hello! I've been using the DistributedCluster package within a service of mine. Everything has seemed to be working great so far, except I've run into an issue when running the service in a release configuration on Linu…

---

## [Distributed Actors Help](https://forums.swift.org/t/distributed-actors-help/64173)

<div class="topic-metadata">

**Author:** [@Genaro-Chris](https://forums.swift.org/u/Genaro-Chris)\
**Replies:** 7\
**Last updated:** [April 7, 2023, 9:25am UTC](https://forums.swift.org/t/distributed-actors-help/64173 "2023-04-07T09:25:27Z")

</div>

I can't really use distributed actors feature for experimentation on my linux device because of the lack of different actor systems. Even the swift distributed actor repository doesn't compile because of version couldn't…

---

## [Web Workers in Swift Wasm via DA](https://forums.swift.org/t/web-workers-in-swift-wasm-via-da/60540)

<div class="topic-metadata">

**Author:** [@Geordie\_J](https://forums.swift.org/u/Geordie_J)\
**Replies:** 19\
**Last updated:** [October 13, 2022, 11:03am UTC](https://forums.swift.org/t/web-workers-in-swift-wasm-via-da/60540 "2022-10-13T11:03:12Z")

</div>

I have been interested in DA since it was announced, and today I thought of a potential use-case that I'd like to run by the community to see if it makes sense or if there's a better (easier / cleaner) way of doing it. T…

---

## [Using swift with DAPR virtual actors?](https://forums.swift.org/t/using-swift-with-dapr-virtual-actors/57488)

<div class="topic-metadata">

**Author:** [@masters3d](https://forums.swift.org/u/masters3d)\
**Replies:** 4\
**Last updated:** [May 24, 2022, 1:50am UTC](https://forums.swift.org/t/using-swift-with-dapr-virtual-actors/57488 "2022-05-24T01:50:19Z")

</div>

I just discovered the dapr project and I was curious :face\_with\_monocle: what other folks think about this level of abstraction. Haven’t spent much time with the project yet but so far it seems to offer a way to write di…

---

## [\[Help\] Some issues with compiling distributed actors project with latest trunk](https://forums.swift.org/t/help-some-issues-with-compiling-distributed-actors-project-with-latest-trunk/57134)

<div class="topic-metadata">

**Author:** [@mr-swifter](https://forums.swift.org/u/mr-swifter)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 7:07am UTC](https://forums.swift.org/t/help-some-issues-with-compiling-distributed-actors-project-with-latest-trunk/57134 "2022-05-05T07:07:46Z")

</div>

Hello everyone! I'm very intriguing in new distributed actors functionality, so I started to play with it before it officially released. As first step I would like to build some very simple distributed system on top of …

---

## [Building swift-sample-distributed-actors-transport](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781)

<div class="topic-metadata">

**Author:** [@icanzilb](https://forums.swift.org/u/icanzilb)\
**Replies:** 5\
**Last updated:** [December 28, 2021, 7:00am UTC](https://forums.swift.org/t/building-swift-sample-distributed-actors-transport/53781 "2021-12-28T07:00:56Z")

</div>

I'd like to play around with the current state of distributed actors so here's what I did so far: downloaded the Nov 20th Swift.org nightly build for Xcode downloaded GitHub - apple/swift-sample-distributed-actors-tran…

---

## [Distributed Worker Pool Example - Support for Specific Hardware](https://forums.swift.org/t/distributed-worker-pool-example-support-for-specific-hardware/53973)

<div class="topic-metadata">

**Author:** [@spprichard](https://forums.swift.org/u/spprichard)\
**Replies:** 4\
**Last updated:** [December 12, 2021, 4:02pm UTC](https://forums.swift.org/t/distributed-worker-pool-example-support-for-specific-hardware/53973 "2021-12-12T16:02:50Z")

</div>

Hello, The more I read about distributed actors the more excited I get! I am curious if it would be possible for distributed actors could support specific hardware requirements? Expanding a bit... In the Worker Pool e…

---

## [\[Video\] Distributed Actors announced at Scale by the Bay](https://forums.swift.org/t/video-distributed-actors-announced-at-scale-by-the-bay/53909)

<div class="topic-metadata">

**Author:** [@ktoso](https://forums.swift.org/u/ktoso)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 11:54am UTC](https://forums.swift.org/t/video-distributed-actors-announced-at-scale-by-the-bay/53909 "2021-12-08T11:54:54Z")

</div>

Hi everyone, along the recent blog post Swift.org - Introducing Swift Distributed Actors and open-sourcing of the work in progress distributed actor cluster library we presented this work on a popular distributed system…

---

## [Open source contribution](https://forums.swift.org/t/open-source-contribution/53686)

<div class="topic-metadata">

**Author:** [@Shilpee](https://forums.swift.org/u/Shilpee)\
**Replies:** 6\
**Last updated:** [November 30, 2021, 12:56pm UTC](https://forums.swift.org/t/open-source-contribution/53686 "2021-11-30T12:56:12Z")

</div>

I was trying to fix this issue Since DocC now ships in toolchains, adjust scripts/docs/generate... to not have to download/build docc · Issue #856 · apple/swift-distributed-actors · GitHub . I cloned the file and change…

---

## [Are there notes (or docs) on how to use a nightly development snapshot with projects (swift-distributed-actors)?](https://forums.swift.org/t/are-there-notes-or-docs-on-how-to-use-a-nightly-development-snapshot-with-projects-swift-distributed-actors/53170)

<div class="topic-metadata">

**Author:** [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Replies:** 16\
**Last updated:** [November 26, 2021, 6:43pm UTC](https://forums.swift.org/t/are-there-notes-or-docs-on-how-to-use-a-nightly-development-snapshot-with-projects-swift-distributed-actors/53170 "2021-11-26T18:43:08Z")

</div>

I wanted to compile and generally explore the new swift-distributed-actors code, on my Mac laptop with Xcode (13.1 - but not the latest beta). I downloaded the nightly toolchain and set it as the toolchain to use within …

---

## [Terminology questions - behaviors, shells, and possibly reductions](https://forums.swift.org/t/terminology-questions-behaviors-shells-and-possibly-reductions/53415)

<div class="topic-metadata">

**Author:** [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Replies:** 5\
**Last updated:** [November 11, 2021, 7:34am UTC](https://forums.swift.org/t/terminology-questions-behaviors-shells-and-possibly-reductions/53415 "2021-11-11T07:34:22Z")

</div>

I'll caveat this with "Yep, these could be all implementation details". In starting to dig through the source for swift-distributed-actors, there are some things I knew the concepts for (basic actor concept, mailboxes, a…

---

## [Clock synchronization](https://forums.swift.org/t/clock-synchronization/53101)

<div class="topic-metadata">

**Author:** [@Tino](https://forums.swift.org/u/Tino)\
**Replies:** 7\
**Last updated:** [November 3, 2021, 11:32pm UTC](https://forums.swift.org/t/clock-synchronization/53101 "2021-11-03T23:32:38Z")

</div>

During the discussion of \[Pitch\] Clock, Instant, Date, and Duration, distributed actors and the ability to define deadlines for remote computers have been presented as motivation for some additions to the stdlib. That t…
