Actor <-> Actor Call on Cloudflare
I've encountered a serious blocking issue when deploying actor-core applications to Cloudflare Workers. My game server works perfectly in local development but fails on Cloudflare with CPU limit errors.
The Problem: When one actor makes an RPC call to another actor in Cloudflare Workers, the execution blocks indefinitely until Cloudflare throws a CPU time limit error. This happens specifically with actor-to-actor communication.
Environment:
- Works in local development (localhost)
- Fails when deployed to Cloudflare Workers
- Using actor-core v0.8.0
Question: Has anyone successfully deployed actor-core applications to Cloudflare Workers with actor-to-actor RPC calls? Is there a recommended pattern for handling this situation?
Any insights, workarounds, or solutions would be greatly appreciated!
2 Replies
hey! this should be fixed in an updating shipping this weekend: https://rivetkit.org/actors/communicating-between-actors
RivetKit
Communicating Between Actors - RivetKit
Learn how actors can call other actors and share data
Great, thank you. Can't wait.
I must also add, really great product. 🙌🏽