Links mentioned: Details automatically generated.
summary

Speaker is explaining to the users how Dino ke V works. They explain how to store information in a database. Speaker wants to scale their project from a side project to an Enterprise platform. Kv is built on Foundation DB, capable of handling millions of operations per second.

Speaker wonders what would happen if a lot of people were visiting at the same time.

Speaker is wondering what happens if they change the value of them and then change the balance of both of them.

Speaker thinks it's pretty cool to be able to share data. They are going to play around with it some more and maybe talk about some projects they have in their mind. Speaker is going to finish up their radio show promo stuff. They were out of town and didn't have time to work on their side project. Speaker thanks Anthony Cruz for hanging out. They will see Anthony at work 50 minutes after the hour.

Speaker has a lot of work to do. They are almost done with the radio show promo. Speaker wants to talk about a thing that they came across recently and shares it on their screen. They created a currency converter for their job. They were recently in Brazil and they wanted to be able to convert money over and it wasn't to back. Speaker wants to convert it to 20 dollars.

Speaker deployed their first project to dino using the dino as a runtime for the backend instead of like node or whatever they would normally use. They are interested in the new global database for apps called Dino. Com. Speaker is developing Test locally using the Dino CLI. They were able to deploy stuff using it because the database is built into the runtime and it's globally distributed. Speaker joined the waitlist for the database and wants to see how it works.

Speaker explains to Speaker that since version 1.3 Dino has a built-in key store value. Kv Works anywhere with zero setup and zero provisioning.

Speaker wants to set the consistency level for their application. They will play with it. Speaker recommends to read with strong consistency with the primary region, but always return the latest data. They created a multiplayer tic-tac-toe game in Brazil and it went over well. Speaker is considering using Dino to store player stats. They have added some stuff to a website. They like it a lot.

Speaker wants to know if there is a broadcast channel to keep everything in sync. Dino has that and a streamline local development. Speaker joined the wait list. They are wondering if workers KV is similar to centralized data store KV. Kv stores data in a small number of data centers, then caches the data, and clouds for data centers. It supports high read volumes and low latency.

Speaker explains the difference between Cloud for co-workers and Dino, a product that they can attach to their applications through cloudflare.

topics
  • enjoy seamless data consistency
  • database
  • system restarts
  • trend
  • inconsistent data
  • nearest region
  • workers
transcript

Welcome back your dreams were your ticket.

I welcome back to that same old place that you well then since you hung up but those dreams have remade, and they turned around.

So now welcome back, get a stretch.

Oh yeah.

Oh yeah.

That last break considering all things considering was actually pretty productive.

I got a lot of the post.

Radio show promo, stuff done.

So that felt pretty good.

I have keys in my pocket for some reason.

Sorry and yeah, so I am almost done because I posted like Twitter Instagram, there's like a mail list, email list blast that I set up so a bunch of things, so I finished pretty much everything at.

It's got a post, the radio show promo stuff to my personal Instagram, but everything else I think is pretty much done.

So Feelin pretty good feeling, pretty good.

So considering Black and all.

So I wanted to talk about this thing that I came across recently met a couple days ago and so let me share my screen.

Now, this is a thing that I created don't think, I mean on the Obama share audio just in case.

Okay, here we go.

So I created this project.

What's that in right so what's that?

.I M, let me I am going to add the link to the site and the list of Links where this recorded video will show up.

And so it's just a currency converter because I for my job I travel a lot, right?

And sometimes I am like, wait how much is that in?

U.s.

May, if I am buying food or shoes or whatever.

I mean, I am like how much my actually spending here, right?

And, so I created, what's that in?

It's a progressive web app.

So that means you can like I haven't downloaded to my phone so it looks like an app, so I am able to pull it up quickly, right?

And We're gonna ask oh, here we go.

So recently I was in Brazil.

And I wanted to be able to convert money over and it wasn't to back.

I think it's like five to one, I think.

So, let us say if I said it was like, $100 right now.

I will be like, wait what?

But then if I convert it Honestly guys like 20 bucks.

Cool.

And then I also added a thing where you could like there're the flags and you are a bunch of stuff.

I spoke about this before, but the reason why bring it up now is that this was my first project that I deployed to dino using the dino as a runtime for the backend instead of like node or whatever I would normally use, right?

So I am gonna kind of keeping up with Dino because it's interesting to me, I like kind of like the way it's going, some kind of like keeping my eye.

On it, right?

And so, I recently saw where they just announced that they have Dino, ke V key value, right?

And let me add a link to this as well.

So, it's Dino.com.

KV, and what's cool about it, it's like it says is a global database for Global apps and so read your data and Ms, worldwide, enjoy seamless data consistency with acid transition.

Transactions, developing Test locally.

Using Dino CLI which is pretty cool too and that's how I was like able to deploy stuff.

It's the CLI is pretty good.

We're KV is built right in so it's like having your own database built into the runtime that's running your application which is in.

It's interesting, right?

Like it's built like if as node had its own Like database, that is come with it.

And, so I think that's kind of Entry.

So this was cool about Dino also that it's deployed and bunch of different servers like across the world, right?

So it's globally distributed.

So your request will go in hit the closest server.

So it's faster returns.

But then thing was always that, well, that might be cool where it, they will do that.

But it, if your data is stored centrally somewhere, far away it, Really matter how close the server is if it has to go and get data from far away like I still will take time but with this like the looks like the database and the servers are like closer to the user and then be able to get the data and the like response a lot faster by doing that.

So that's why it says read your data and Ms. because it's like right there next to the user as well, which is pretty dope.

Yeah, okay, so I joined the waitlist, so we will see how that works.

And you can also run it locally, which I didn't even look at you.

See you trying open that up.

What is that dude?

All right, so since version 1.3 to dino, has a built-in key store value, key value store that durably persist data on disk, allowing for data storage, and access across service and system restarts.

Nope.

And so the different things that you can store string number big, and Boolean, and you in it, that would say that you integer 8 arrays.

So values are arbitrary JavaScript Primitives objects and arrays.

Okay.

And so, yeah.

So right now is experimental when I sign up, they're like, hey, you understand?

This is experimental and it's probably going to break.

So when you sign up, that's gonna be a thing.

I can only works with unstable flag, so they're really let you know that.

Hey this is not a thing that's gonna work.

All right, so yeah, okay, so it goes more into that.

So let us see the Promo page here so setup.

No, thank you.

Open, a cave East or in any Dino program with one line of code, which I am assuming is that this KV away Dino dot open KV.

It doesn't matter where your code runs locally, or in 35, Plus data centers around the world.

As I was saying, like, again, they have it to where the all the server's is they said 35, Plus data centers around the world.

So that means that your database is also in those 35 Plus things.

So, you know, KV Works anywhere with zero setup and zero provisioning which I always a fan of, right.

So you can see here.

So these are the server.

Would you like the server?

And there, the awaiting, the dino open KV, and they have this, adding up the sums of the visits or have you?

So they're deploying it.

And then anytime you go there, anywhere in the world, you go to your to get that visits.

And it's going to be stored closer to where the person's requesting, so, that way it's loading super quick.

But yeah, let us see.

So, a database for JavaScript So, Dino ke V is built for JavaScript in typescript store, any JavaScript value?

So, again, like they're saying, strings objects without having to worry about sterilization.

So make like turning strings and reading on stuff, the intuitive promise based API makes storing retrieving and deleting data a breeze.

All right, so here we go.

So there's the same 08, you're okay.

The open KV.

Let us see.

So then the key right there is going to be the users.

And a random user ID, right?

It's a random unique ID.

And then you say the value?

And then it's the name Alice.

So that's the object is setting there and then the KV your setting.

So yeah, I guess this is like the Words, I guess this is like the key so users is your guess like database that you're trying to store, right?

And you're giving it a random uuid And then you're saying the value for it and then you're sitting it in the KV the key which is like the you under the users, the guid and then the value of it.

Cool.

And now, when you get the key, You will get that.

So then like, So I guess you can make like the value in Array of different names also, so you ain't get result that value its name Alice, all right.

And here's the thing scale effortlessly go from a side project to an Enterprise platform 10, config 0, provisioning 0 orchestration, which always a big fan of I like not having to worry about that stuff I just want to be able to build the project and keep it moving, right?

So that's pretty dope.

Let us see.

Yeah, we will handle it.

Do you know KV is built on Foundation DB which will take a look at capable of handling.

Millions of operations per second.

You know?

What else is built on Foundation?

BB iCloud.

Yeah, so kind of going to be is from Apple.

So we will take a look at that Snowflake and more.

All right.

Cool.

I don't know what any of this means, but shots of them for having that.

All right, so this is another thing.

I was kind of wondering about like because let us say, you are getting a bunch of different transactions.

Like let us say for that visit counter, right?

What if a bunch of people are visiting at one time.

So let us say 10 people visit right and initially it says five.

Well, How is it that if they're all visiting almost at the same exact time?

What visit counter?

Would they see your?

I mean like How does that work kind of thing?

So like I give you had like for example they have this here where they're like a balance, right bike?

Like if a person is like making Trend like withdrawals and another person's making withdrawals, When will the balance get to — you don't mean like, will it allow it to like, you know?

So yeah, that's kind of interesting.

So let us see, transact with confidence Dino KV writes data to using acid transactions.

So you never have to worry about partial rights or inconsistent data, even when you are mutating multiple keys at once, okay?

Data is instantly durable.

Once a transaction is committed, so you can be sure that your data It is safe at all times.

All right, let us show you how that works.

You go looking more into that but that's kind of interesting.

Like I wonder, let us say if it's like I don't know.

Certain amount of tokens or whatever, you know, whatever value thing.

And you have a bunch of people pulling from it.

Well will happen.

If one person has a transaction and other person made it makes a transaction which is more than what's available there.

What happens I am saying like a race condition kind of thing?

So I don't know, but they have some stuff here where so the saying success equals so atomic.

So, they're sending up the thing there, and they have a value change equals 10.

All right?

And so they're waiting the so the balance, but their username Bob's.

Are you looking to get that from then?

Call that Bob, cool.

Same thing for Liz.

Now, if Liz value is less than 10, you're going to throw an error saying not enough balance.

Okay?

Now.

Your way into the soil.

Okay.

This is the atomic thing that's on my like, the acid trend has actions.

So you're checking Bob and Liz, the balance is didn't change.

Okay, but then you're setting now the balance of Bob so that the value there is minus 10.

And then you're setting the balance Liz while you're adding 10.

Okay.

And then you commit it, but I am wondering what happens if you, you Got rid of that says, both of them the same key and you're changing the value of both of them and subtracting.

What would happen?

I don't know.

That's right, that's something I will play with it.

If I get access to this thing, customizable, consistency, find the right balance between latency and consistency for your application with our customizable consistently levels.

You know, KV can adapt to your unique needs.

So you can focus on your users.

Okay?

So let us say read with event and I love that eventual consistency, that is amazing from the nearest region, reach are fast but may return stale data that's as I was kind of worried and wondering about so you can set the consistency, which is pretty dope.

So if you need to be say eventual is going to pull from the nearest thing, whatever that data says, is going to pull it back.

So, but it may be stale because it hasn't been updated with the other one.

Other locations, right?

So, read with strong consistency with the primary region, And so re just slower, but always return the latest data.

So that's cool.

So that kind of like, Answers my question before, like what will happen.

So it may be slower but it will be the right one.

So depending on what it is.

So it's like Financial stuff you probably want to do strong but if it's just like reading, maybe, I don't know comments or whatever.

Then it may not because if it depends on how you have said the comments may just be in that local region anyway so it might be just better and faster to do it from there.

I don't know.

Again, I will have to.

Yeah, because if you're storing like comments or whatever in like local regions, Eventually you will reach to the everyone else, but if it's like more like a local story and you want, yeah, I can see that.

He's I think so.

I don't know again.

I am not the mess around with us.

And so, I saw this example, it's funny because I just created like a multiplayer tic-tac-toe game and was using it in Brazil, and it went over really well.

I am saying the conference and went over really.

Well, I think.

And so it's kind of interesting though to see this guy was looking for a way to like, save, like player stats and so this might be a good way of doing that because especially if it's like only local Regional kind of thing you, I am saying be able to store it there and reading it quickly so that might be a good option.

So I might be Everything to use Dino.

I don't know.

We will see.

I don't know.

But I think that's pretty cool.

And in this was also pretty cool.

It's like a pixel canvas thing so on I added some stuff to it.

So let me see if that's still stay dry like blue squares.

Oh no, it totally changed now.

All look like somebody that's came in and just changed everything.

That's pretty cool.

So let us say I don't want to miss their thing up too much, but let us say I add thing there.

Then if I refresh it.

Yeah, and it still there and it loaded quickly to, right?

That's pretty dope.

All right.

Okay, I am over time.

But yeah, so some like that.

So things like that is pretty cool.

That is pretty cool.

So I guess if I were in like another region, it might still have shown those two blocks that I added not being there yet.

And so right now this is pretty cool.

I like that real quick.

I think that's everything and there's like a to-do list where you can like, add to do, but it gives you like your unique URL.

And so that way you always keep it in sync like you can share that URL with someone else.

Yeah, shows page collaborate with others and what's interesting like so you see the Green Dot it shows you like if it's caught up.

So notice the Green Dot turns yellow while it's being like saved I guess in the thing so that's kind of cool.

Okay, let us see.

So wait.

So I was wondering, does it?

So yeah, I think there's like a broadcast channel is something to kind of keep everything in sync.

So let me see Test 2 in this new page.

So page one should update it.

Yep, it did.

That's for you do if you're able to keep them in sync I think they said they're using like the broadcast channel that's built into.

Dino has that's pretty dope.

It's a lots of cool stuff you can do with that and yeah.

And a streamline local development so you can work on the stuff locally is backed by SQL Lite.

Cool.

Alright, so we're done.

So I joined the wait list, so I will maybe do a follow-up video later on to talk about maybe something I built or whatever.

All right.

But this is built on a foundation DB and so you can find out more information that I like I said it's from Apple.

So do with that information what you will add that list of Link's there and it as well.

So this kind of reminded me and I think I spoke about this before in a previous break session about cloud.

Where they have these workers KV.

So I am wondering to me, it seems similar.

And again, I am not I don't know much about like infrastructure and behind-the-scenes stuff, but for me it seems kind of similar.

So workers KV is a global low, latency key value data store, so I just pretty much would be.

No TV said it.

Was it stores data in a small number of centralized data centers, then caches the data, and clouds for data centers, after access, KV supports, exceptionally High, read volumes.

And low with low latency — possible to build highly Dynamic, apis and websites that respond as quickly as the cat as a cache.

Static file would while reads are periodically we validated in the background because they got to sync up right requests which are not in cash and need to hit centralized backend can see highlighting Seas.

And so, so this is like Cloud for their workers, right?

So they have their own thing.

So, and I saw this, this came out before I believe and the dino one is like in the runtime.

So, Cloud for the so co-workers is like a separate product that they have that you can attach onto your applications through cloudflare, and then Dino is actually inside the runtime itself.

So, you How does he like his?

They have a dope explanation, explainer kind of like wheatgrass, Troy kind of show what's going on and kind of tell you everything.

So I think this also applies to Dean okay be again, I don't know don't hold me to that but it's pretty dope so you can check that out and this list of links as well you know why won't you let me?

Okay, there we go.

I had already that it to all right, cool.

So yeah, that's going to be it and yeah, I think that's super dope.

I think that's kind of cool to be able to now.

Your data can be close to the user of your application as well.

And so, yeah, I think that's going to, I think it's pretty cool.

Okay, so I am going to play around with it, some more.

And if I get access at some point and maybe talk about, could I, there're some projects I have in my mind.

That were that could work and so now that I know that Dino has it, then maybe I will maybe use the like kind of like have that project be a dino project now just to play with it, so I don't know.

We will see.

All right, cool.

So I am going to get you all back to work again.

Thanks for hanging out.

I will.

So I am my plan is to finish up this.

My proust radio show promo stuff.

And I have not worked on my side project because out of town and I did not have an opportunity to work on, so I am looking forward to catching back up on that and yeah I think that's going to be it.

So thanks again for hanging out sure my screen here to get you all back to work and so this is a track from an artist by the name of Anthony Cruz formerly known as a butter and the track is called.

Thank you.

Because again thanks for hanging out.

See you 50 minutes after the hour till then I wish you much productivity and yeah, y'all be easy Anthony Cruz AKA but uh thank you.

All right.

Also let me know if you have any ideas for a project to use like a dino, ke V and or like if you use cloudflare worker KV you know let me know what you use and so just kind of interested, all right?

So Anthony Cruz AKA but of thank you.

All right.

Thank you.

Larabee seek.

Peace.