fjornF
Convex Community8mo ago
13 replies
fjorn

Actions directly from client an antipattern

Curious as to why it's considered an anti-pattern to call actions directly from a client. We have a separate legacy service that owns a (relatively static) chunk of our users' data so many of our reads are functionally redirects to this separate service. We do not want our convex DB to own a copy of this data as well to avoid issues trying to keep them in sync so I don't really want to put the res results into our convex DB. Is there something I'm missing that would let us handle this case with query/mutation kicking off an action instead of hitting the action from the client directly?
Was this page helpful?