johnpapa / johnpapa/angular-cosmosdb

Question: Why the server component? Why not have the client get the data directly?

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
81
Forks
49
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.