Data in Microservices

  Рет қаралды 13,315

Houssem Dellai

Houssem Dellai

Күн бұрын

Learn about the Materialized View pattern to manage data in microservices architecture.

Пікірлер: 34
@manaspradhan7978
@manaspradhan7978 4 жыл бұрын
Excellent ..Thanks for the good explaination
@mohamedadnanealkhiati5006
@mohamedadnanealkhiati5006 2 жыл бұрын
This is an extremely amazing helpful video!
@emadabushofa2379
@emadabushofa2379 3 жыл бұрын
I always use the materialized view approach for most of the services, the only downside is not just duplicating data but also too much data will be copied in too many services, of course they are synchronised with rabbitmq or azure service bus but I also find myself adding a direct http call for reading data from other microservices especially when creating a new service that has 0 data and it needs to read everything around to get started. But anyway it's fun to develop, thanks a lot for your great videos.
@edwardwong654
@edwardwong654 Жыл бұрын
There are details that are either incorrect or inconsistent at best. The matericalized view is READONLY, so the B service can't update it. Typically a MV is setup to by to perform an update after every time inverval, like once a day, or whatever. The update on the price should trigger an event to force the view to do an immediate synch, rather than to update it directly. That is the proper pattern. Also he did not say why the aggregator pattern was not good.
@mostafasaeedhashhash8718
@mostafasaeedhashhash8718 4 жыл бұрын
Real Big Thanks for all Your Videos.❤️ Your Channel is one of the most high quality channels & really deserve more than subscriptions.
@senburbensgaming
@senburbensgaming 2 жыл бұрын
Agree
@Areyousureyouwantto
@Areyousureyouwantto 4 жыл бұрын
thank you for the excellent video brother
@bobbyiliev_
@bobbyiliev_ 2 жыл бұрын
This video is amazing!
@32zim32
@32zim32 Жыл бұрын
I don't understand why first approach is coupling and is bad, because materializes view is the same coupling, service B dependable on service A, but now this dependency is hidden. So you just replace http or other grpc query from B to A, by some other sync protocol.
@krzysztofbuczak1212
@krzysztofbuczak1212 Жыл бұрын
Sorry for nooby question but: how is it possible to update (by event) read only table by basket ms? Its "read only"
@mustaphag
@mustaphag 3 жыл бұрын
Bravo Houssem, Excellent work
@isaiahkhalid7795
@isaiahkhalid7795 2 жыл бұрын
sorry to be so offtopic but does anybody know of a trick to log back into an Instagram account? I was dumb lost my password. I would love any tips you can give me
@abdullahdanny9420
@abdullahdanny9420 2 жыл бұрын
@Isaiah Khalid instablaster :)
@isaiahkhalid7795
@isaiahkhalid7795 2 жыл бұрын
@Abdullah Danny thanks for your reply. I got to the site through google and Im in the hacking process now. Seems to take quite some time so I will reply here later with my results.
@isaiahkhalid7795
@isaiahkhalid7795 2 жыл бұрын
@Abdullah Danny It worked and I finally got access to my account again. I am so happy:D Thanks so much, you saved my ass :D
@abdullahdanny9420
@abdullahdanny9420 2 жыл бұрын
@Isaiah Khalid Glad I could help :)
@abdelrahmane657
@abdelrahmane657 11 ай бұрын
Very good. Thank you. Yet the last option is best to be avoided. It is not a solution, it’s a risk .
@easonex02
@easonex02 4 жыл бұрын
Great sharing. By the way, how to present like you, seems a transparent glass between you and the cam. if need some hardware or software?
@TimBee100
@TimBee100 3 жыл бұрын
What is a local database in a cloud environment? How does that work? If you have multiple occurrences of the basket microservice, how many versions of the database do you have?
@joshuam6013
@joshuam6013 4 жыл бұрын
I am struggling with finding an approach to insert and retrieve data from the Catalog DB. I am thinking that I would create an insertCatalog Microservice connecting to a write-only DB with a catalog table, and then replicate that data to a read-only DB where I use the getCatalog microservice to get from that replicated DB? Or am I able to create a get/post RESTful API's in the Catalog microservice?
@khalednabilcs
@khalednabilcs 4 жыл бұрын
Well Said Brother, Can you make a video of implementing the last approach and show it in code Much Appreciate
@HoussemDellai
@HoussemDellai 4 жыл бұрын
I'll take that into account :)
@khalednabilcs
@khalednabilcs 4 жыл бұрын
@@HoussemDellai Thank you 🙏
@khalednabilcs
@khalednabilcs 4 жыл бұрын
@@HoussemDellai Brother I made a full tutorial based on your video including rabbitmq and ocelot I am writing it now once I publish it i will update you hopefully you review it when you have time Thanks again
@balachanderharivarsha9757
@balachanderharivarsha9757 4 жыл бұрын
@@khalednabilcs where is the tutorial plz share link
@rahulrsavant
@rahulrsavant 3 жыл бұрын
explanation is excellent, i am working on "database per service" pattern.I confuse about how to write materialized view & trigger for this pattern
@AndreanoCelentano
@AndreanoCelentano 3 жыл бұрын
Data sharing has its issues. Consider schema change and its implications on cross service communications. With api this problem either does not exist since data is abstracted away or is handled by client versioning and proper version deprecation. Thanks for the presentation.
@KaranKumar-wb5bn
@KaranKumar-wb5bn 2 жыл бұрын
then why not just use monolithic?
@anujchaturvedi6296
@anujchaturvedi6296 3 жыл бұрын
Is it a good idea to share the SQL database with both Catalog Microservice and Basket Microservice?
@jomarilangamon2323
@jomarilangamon2323 2 жыл бұрын
what if i added a new materialized view (table), it's empty at the start, how am i going to populate it with data?
@khalednabilcs
@khalednabilcs 2 жыл бұрын
Either copy the whole data from the original or make a service to get the data on batches
@sandeeproy3126
@sandeeproy3126 2 жыл бұрын
what about grpc , what does it do?
@khalednabilcs
@khalednabilcs 2 жыл бұрын
Good point, that would be a quicker for services to communicate together
@prashanthb6521
@prashanthb6521 2 жыл бұрын
I think creating http coupling is easy and we should not shy away from taking that path. Purists might not agree.
Monitoring Kubernetes with Prometheus & Grafana (1/5)
14:57
Houssem Dellai
Рет қаралды 27 М.
Microservices explained
28:57
Houssem Dellai
Рет қаралды 10 М.
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
kak budto
Рет қаралды 1,2 МЛН
ВЫКИНУЛА МОЙ АЙФОН?? #shorts
00:33
Паша Осадчий
Рет қаралды 1,1 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 17 МЛН
Database per Service Pattern in Microservices
22:49
Arpit Bhayani
Рет қаралды 10 М.
Authentication as a Microservice
50:26
Oracle Developers
Рет қаралды 214 М.
SAGA | Microservices Architecture Patterns | Tech Primers
10:55
Tech Primers
Рет қаралды 187 М.
The hardest part of microservices is your data
46:05
Red Hat Summit
Рет қаралды 177 М.
API Gateway explained
22:30
Houssem Dellai
Рет қаралды 131 М.
Do you know Distributed transactions?
31:10
Tech Dummies Narendra L
Рет қаралды 225 М.
i love you subscriber ♥️ #iphone #iphonefold #shortvideo
0:14
Si pamerR
Рет қаралды 2,2 МЛН
Где раздвижные смартфоны ?
0:49
Не шарю!
Рет қаралды 749 М.
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 1,5 МЛН
Мечта Каждого Геймера
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 450 М.