angular-cosmosdb
angular-cosmosdb copied to clipboard
Question: Why the server component? Why not have the client get the data directly?
trafficstars
I get that we don't want a thousand web clients to direct connect to CosmosDB, but using the SDK, it does seem feasible to direct connect.
container.items.query('select * from heroes where id=1').fetchAll();
I've read your articles about how easy it is to implement CosmosDB, but why complicate it with another piece of middleware.
Security aside, if you where doing a simple PoT, couldn't you skip the server?
I'm asking, because, that's what I'm trying to do. Take your client component and simply add the SDK and direct connect. Just getting weird AbortSignal errors.