Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BulldogCTISolutions opened this issue Oct 15, 2019 · 0 comments

Comments

@BulldogCTISolutions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant