Is BulkCheck supported in Authzed Serverless?
# spicedb
f
Having trouble using the bulk checkpermissions api over rest. Wondering if anyone has the same issue? Was trying to hit
'/v1/experimental/permissions/bulkcheckpermission'
on
https://gateway-alpha.authzed.com
v
BulkCheck is not yet supported in SpiceDB Serverless, only in OSS SpiceDB and SpiceDB Dedicated
f
guessing next best thing is doing two api calls?
v
correct. gRPC goes over HTTP2 so requests are multiplexed anyway, you just need to run both concurrently (e.g. promisify'ing them). BulkCheck has the benefit that it spares you of that running-concurrently overhead, plus it comes with a bunch of optimizations that reduces the number of datastore queries.
f
im using the rest api so i think i have to take the L on it
since I am running the code in a cloudflare worker
shouldn't be too bad considering I do auth checks before a websocket connection
v
are you planning to run this workload in production against SpiceDB Serverless or an OSS SpiceDB Deployment?
Do you have more details on what is that cloudflare workers don't like about SpiceDB node client? Would you mind opening an issue with any details you may have?
f
spicedb serverless (i barely have any users as of now, and I don't want to prematurely optimize) Basically I think the protobuf generated clients use node specific runtime libraries that are not in workerd runtime (which is what cloudflare uses). They do have some compatibility apis built in which just work, but the ones I remember of the top of my head that are missing are
os
,
http2
there's one more I can't remember off the top of my head
v
interesting. I wonder if cloudflare offers any guidance / best practices on how to maintain libraries that can work in both a workerd environment and vanilla NodeJS cc @Sam in case you have any thoughts
s
Interesting, yeah we haven't targeted workerd yet. Some quick googling hasn't turned up a checklist or anything but I'll trying running tests on workerd and see what comes up