Intro To CosmosDB - How To Easily Use Cloud NoSQL with C#

  Рет қаралды 10,090

IAmTimCorey

IAmTimCorey

Күн бұрын

Пікірлер: 43
@techno7761
@techno7761 12 күн бұрын
Thank you. Just what the doctor ordered.
@IAmTimCorey
@IAmTimCorey 12 күн бұрын
You are welcome.
@mashwill85
@mashwill85 7 ай бұрын
Video came at the right time just when I wanted to start learning Cosmos DB. Thanks Tim
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Great!
@KanishkGupta-r9m
@KanishkGupta-r9m 2 ай бұрын
Really good video , as expected TimCorey is the best
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Thank you!
@andergarcia1115
@andergarcia1115 7 ай бұрын
Thank you Master, it's good to start seeing things that are more at a business level. Insightful explanation as always
@IAmTimCorey
@IAmTimCorey 6 ай бұрын
You are welcome.
@prashantmore2381
@prashantmore2381 5 ай бұрын
Awesome explanation once again. Thank you so much Tim. You are the best 😄
@IAmTimCorey
@IAmTimCorey 5 ай бұрын
You are welcome.
@egcoolmauricio
@egcoolmauricio 7 ай бұрын
Nice video, I always get updated with yours tutorial, thank u so much. Regards from Argentina
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
You are welcome.
@giuseppe-guerra-x86
@giuseppe-guerra-x86 7 ай бұрын
Thank you! Great tutorial! 👏🏼
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
You are welcome.
@mohammadanas4377
@mohammadanas4377 7 ай бұрын
Was eagerly waiting for it
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Great!
@Tommyt212002
@Tommyt212002 6 ай бұрын
I have been using Cosmos DB for three years now, and while its flexibility is one of its greatest strengths, it can also be its Achilles heel. It's crucial to ensure that your code is well-structured and robust because Cosmos DB lacks the constraints that SQL databases provide to help keep your data in check. Unlike SQL databases that enforce strict schema rules and constraints to maintain data integrity, Cosmos DB gives you the freedom to design your data model without those safeguards. This means that you must implement your own validation and data integrity checks within your application to prevent issues and ensure data consistency.
@IAmTimCorey
@IAmTimCorey 6 ай бұрын
That’s the nature of NoSQL databases in general, yes.
@FARES-dd6ln
@FARES-dd6ln 7 ай бұрын
Muchas gracias, funciona perfectamente, te has ganado el like, la suscripción y todo XD
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
You are welcome.
@tennisCharlzz
@tennisCharlzz 2 ай бұрын
I'm used to using a SQL tool (for a SQL database) where I can type SQL and get a response. Does CosmosDB even work like this? Is it considered too expensive to make "SQL" queries directly and therefore, it should be done programmatically via C#? I'm trying to match my own experience querying SQL databases with Cosmos DB, but it doesn't seem like there's something similar? Or is there some tool where I can connect to a Cosmos DB and run SQL-like queries (mostly, select queries)?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You can do that in the portal if you want. You can also do it in VS Code with the Azure Databases extension from Microsoft.
@DavidMartin-vs1dm
@DavidMartin-vs1dm 7 ай бұрын
Tim, which is cheaper for hosted DB, Azure Cosmos or Atlas MongoDB?
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Good question, but a complicated answer. On the surface, MongoDB Atlas is a lot cheaper. However, it does depend on your usage and how you buy your credits. For instance, you could purchase up to three years of expected usage for a major discount (I believe up to 40% off). That's great for companies with consistent workloads. You also might be able to use Serverless for CosmosDB, which will be cheaper. Finally, you might already be using Azure for other things, so the connectivity, security cross-over, etc. might be a huge benefit. In the end, you should evaluate your specific project in order to determine which will be more affordable in both the short-term and the long-term. Don't forget to include backups, availability, reliability, and scalability as part of your evaluation.
@dracocendrillion9963
@dracocendrillion9963 7 ай бұрын
Yes amazing 👏
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Thanks!
@korsbar1978
@korsbar1978 7 ай бұрын
You're very good.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Thank you!
@karthiks4347
@karthiks4347 7 ай бұрын
Tim! Did you just say free SQL? I think it is time limited right?
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Azure provides one free SQL database and one CosmosDB database. Both are free for life. You only get one each and there are size restrictions.
@MrDexterAlan
@MrDexterAlan 7 ай бұрын
Serverless should be use only for deweloper purpose becouse have limited throghput. A serverless container can store a maximum of 1 TB of data and indexes. A serverless container offers a maximum throughput that ranges from 5,000 RU/s to 20,000 RU/s.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
I fully disagree. Yes, serverless isn't for all situations. That's a given. However, it is absolutely for use with production apps. This is a small example, but my Suggestion Site app uses MongoDB Atlas (similar to CosmosDB). The total storage used for the production application is less than 2MB. Granted, it is a small app, but that's the point. Production apps don't need to be enterprise level massive. But even my site, with over a thousand users and almost a thousand suggestions (some have been archived - we have over 800 active) is a decent production app. Now scale that up to where it would run out of room on serverless CosmosDB. Based upon storage size, I would need over 500,000 suggestions and about 750,000 users. And that would be if we decided to keep all of that information on the production server rather than archiving it. If we base it upon RU/s, we would need even more, since I use caching to reduce my calls down to a tiny fraction of what I would otherwise need. So now let's think about how many apps are comfortably within those bounds. Not every application will need hundreds of thousands of users or entries. There are LOTS of apps that support systems. Apps for small to medium-sized businesses. Apps for services. Websites that need a place to store data. And those are just a few of the hundreds of applications that I've seen personally that could use serverless CosmosDB. It isn't for every situation, but too often I see people plan for enterprise-level applications before they have their first user. That makes for poor design as well. You need to be realistic in your planning. CosmosDB is actually rather easy to change from serverless to standard.
@MrDexterAlan
@MrDexterAlan 7 ай бұрын
It is better to use to store Connecting string Azure key vault.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
Better than what? Appsettings? If you set up your configuration to use Key Vault as well, it will override Appsettings. For me, I used secrets because that's where you should put it for local development. As for Key Vault being "better", there are other options that you should consider. For instance, if you were to deploy your web application to Azure, you could use the environment variables in Azure to ensure that your developers never had access to the secrets while securely providing them to your production application (and other versions as well). It is simpler than Key Vault, less to maintain, and closer to the actual item using it. Both have their place. Just don't get caught up in one solution always being right. In this particular demo, we used a Console app. In that case, there is no secure place to store the connection information, so appsettings is fine. If you used Key Vault, you might actually expose additional secrets, depending on how you access Key Vault. Regardless of how you access a secret on a desktop application like a Console app, the Console app has to see the clear-text version and has to transmit that clear-text version (over SSL). That means that if you have access to the machine that is running the desktop app, you have access to the secret in clear text.
@msulemantube
@msulemantube 7 ай бұрын
I have converted your entire KZbin channel into an AI question-answer chatbot. Additionally, translations are available in English, Urdu, French, German and Italian languages. please let me know I will share the link.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
I appreciate the idea, but that's not something I'm interested in doing at this time. It will sound good, and it might even produce some decent answers, but it will also give bad answers. Also, the outcome of an AI is typically to pull traffic away from the creator. The AI provides answers instead of telling the viewer where to look, which in turn reduces views on the original content. That's a real danger for creators.
@msulemantube
@msulemantube 7 ай бұрын
@@IAmTimCorey I understand your concerns, and I appreciate your honesty. We can train the model according to the content to ensure better accuracy. AI is already taking over, and if we don't adapt our way of thinking and learning, we risk becoming obsolete. Additionally, being dependent on one platform is not very viable for the long term. If you change your mind in the future or have any other ideas on how we can collaborate, please feel free to reach out. Thank you for your time and consideration.
@Raziaar
@Raziaar 6 ай бұрын
How to not go bankrupt with CosmosDB.
@IAmTimCorey
@IAmTimCorey 6 ай бұрын
I cover that in this video. Everything can be free, as I show, or relatively cheap depending on your use case.
@rodrigo6459
@rodrigo6459 7 ай бұрын
Okay... so when trying to use System.Text.Json.Serialization instead of Newtonsoft.Json for decorating the ID does not work! kinda ridiculous!... so if you want to use System.Text.Json.Serialization you have to create a WHOLE new class which will inherit from CosmosSerializer!
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
In order to support both, they would have needed to put both packages in the serializer. That would have added to the dependencies. They had to choose one.
How To Learn Azure In 2023
58:02
IAmTimCorey
Рет қаралды 40 М.
Reinforcement Learning Course - Full Machine Learning Tutorial
3:55:27
freeCodeCamp.org
Рет қаралды 1 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
My 30+ Tweaks to Visual Studio 2022 - Make VS Work For You
1:02:12
IAmTimCorey
Рет қаралды 38 М.
How To Create Generics in C#, Including New Features
38:51
IAmTimCorey
Рет қаралды 54 М.
Quiet Night: Deep Sleep Music with Black Screen - Fall Asleep with Ambient Music
3:05:46
Azure Cosmos DB Tutorial | Globally distributed NoSQL database
31:17
Adam Marczak - Azure for Everyone
Рет қаралды 231 М.
AWS Certified Cloud Practitioner Training 2020 - Full Course
3:58:01
freeCodeCamp.org
Рет қаралды 7 МЛН
Intro To Azure Storage in C#
1:05:37
IAmTimCorey
Рет қаралды 3,7 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
Access Beginner Tutorial
3:47:45
Learnit Training
Рет қаралды 1,3 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН