News for hackers. Stuff that matters.
Re:Distributed Coroutines: a new primitive soon in every dev... by pryz on Wednesday March 13, 2024 @03:50PM (#39696519)
Hi HN,

We've had enough of traditional orchestration frameworks. That's why we created dispatch.run, aiming to streamline coding by integrating resilience more naturally.

The core of our solution? Distributed Coroutines. These aren't your typical tools; they're designed to enhance flexibility and reduce complexity in distributed systems.

We've detailed our approach and the potential of Distributed Coroutines in a new blog post. It's about making development smoother and more intuitive.

Let's discuss the future of distributed computing.

Re:Distributed Coroutines: a new primitive soon in every dev... by halayli on Sunday March 24, 2024 @08:24AM (#39806786)

  async def mycoroutine():
      await operationA()
      await sleep(24 * 60 * 60) # wait 1 day
      await operationB()

The article lacks an example demonstrating how it can solve a real problem. I felt the authors aren't able to come up with such a concrete example nor does it talk about its overhead and global state atomicity.
Re:Distributed Coroutines: a new primitive soon in every dev... by achille-roussel on Sunday March 24, 2024 @05:11PM (#39810559)
The goal of this article was to lay the concepts and give insight into the technical machinery, so you’re right, it didn’t contain a lot of concrete examples.

I invite you to check out part 2 of this series, which focuses more on the Python implementation https://stealthrocket.tech/blog/distributed-coroutines-in-py...

Stay tuned for more content as well, we couldn’t fit everything in one post!