# Swift or C++20 coroutine, which is the future of FDB?

**URL:** https://forums.foundationdb.org/t/swift-or-c-20-coroutine-which-is-the-future-of-fdb/4592
**Category:** Development
**Created:** [August 26, 2024, 1:36am UTC](https://forums.foundationdb.org/t/swift-or-c-20-coroutine-which-is-the-future-of-fdb/4592 "2024-08-26T01:36:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ben131](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/ben131/32/1847_2.png) [@ben131](https://forums.foundationdb.org/u/ben131)
#### Post date: [August 26, 2024, 1:36am UTC](https://forums.foundationdb.org/t/swift-or-c-20-coroutine-which-is-the-future-of-fdb/4592/1 "2024-08-26T01:36:26Z")

</div>

I see it seems that both [C++20 coroutine](https://github.com/apple/foundationdb/blob/main/design/coroutines.md) and [Swift](https://github.com/apple/foundationdb/blob/main/SWIFT_GUIDE.md) are introducing to the FDB codebase for replacing the old flow actor language, so which one will be the main choice?

---

<div class="post-metadata">

### Author: ![jzhou](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/jzhou/32/445_2.png) [@jzhou](https://forums.foundationdb.org/u/jzhou)
#### Post date: [September 1, 2024, 5:15am UTC](https://forums.foundationdb.org/t/swift-or-c-20-coroutine-which-is-the-future-of-fdb/4592/2 "2024-09-01T05:15:19Z")

</div>

Both are experimental as this stage. C++ coroutine has much less friction for development, but there are performance difference between coroutine and flow actors. We are still exploring.
