Parzival
Parzival2y ago

Convex Realtime

Hey all! Love the library. Looking to migrate from feathers to Convex if possible. Only thing about feathers I wanted to see with convex if if I can subscribe arbitrarily from one microservice to another a stream of events, and if I can call server functions without going through the API. Feathers makes it easy for us to reuse our services in websockets, rest, and also as standalone functions, and listen to events. We also inject the whole feathers app into workers of a node graph runner to call the services.
1 Reply
ballingt
ballingt2y ago
Hi! Would love to hear more.
call server functions without going through the API
I'm not sure, but this sounds like HTTP endpoints — can you say more about what does it mean to call a server function without going through the API? https://docs.convex.dev/functions/http-actions
subscribe arbitrarily from one microservice to another a stream of events
Is this another microservice outside of Convex? You can use Convex clients from e.g. a Node.js microservice to listen to a query on a table you create of events, and modify this table when you process the events — but let me know if I'm not hitting on what you're looking for! I'd love to hear about the node graph runner — Convex is a hosted server so you don't need to run it. Convex doesn't expose raw WebSockets, instead you use Convex clients which are implemented on top of WebSockets to provide subscriptions to queries.
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!

Did you find this page helpful?