‫All right, guys, so.
‫We talked about Sharding a little bit, we did an implementation with sharding, with consistent hashing
‫and all that jazz, pretty cool ish stuff, right?
‫How about we talked about the pros and cons of Sharding?
‫Is this perfect?
‫Well, let's check let's check it out and see.
‫So the pros of shorting is you're going to get scalability and that's both and data memory and even
‫CPU and any resource that is on your server instead of having your server, essentially the resources
‫of getting hawked with one machine, you can spread the load on multiple machines across horizontally
‫partition horizontally scale things right.
‫Goes down.
‫Essentially your your data is spread out and now the client is aware of which part is where.
‫And then just like need to know and head that essentially and just build up, build that up.
‫Right.
‫So that's essentially what needs to happen.
‫So you get scalability for free.
‫That's great.
‫Right.
‫You also get security.
‫Right.
‫And that's well, that's interesting one.
‫Let's say you like if you have like certain customers data, you want the this shard of customers to
‫be accessed only by certain people.
‫So you can put your VIP customers in one shot and other customers are another charge.
‫Right.
‫And then you can have little bit access.
‫Control or not, Shahd can be accessed by what clients.
‫So with that and instead of having everything in one table, you kind of spread it out and have kind
‫of access control over what it's like.
‫So already you cannot access this chart.
‫Right.
‫So you can essentially have this level of control of security with pros, with sharding.
‫Pretty cool stuff.
‫Right.
‫And it's optimal because they were going to get a smaller and smaller and smaller index size.
‫And that's cool because the smaller index you get, the better and the quicker and more efficient queries
‫become.
‫Right.
‫Cool stuff.