Scaling Distributed Systems - Software Architecture Introduction (part 2)

Поділитися
Вставка
  • Опубліковано 11 жов 2020
  • Software Architecture Introduction Course covering scalability basics like horizontal scaling vs vertical scaling, CAP theorem and more.
    In this second video of the Software Architecture Introduction series, I cover scalability basics and important considerations you need to take into account when scaling distributed systems, like Horizontal Scaling, Vertical Scaling and the CAP theorem. You will learn how to split the load in stateless and stateful services, load balancing, sharding strategies and replication. I also introduce some topics like consistent hashing and other relevant topics. For more topics regarding Software Architecture and Design checkout the playlist: • Software Architecture ...
    ----------------------
    🔖 Some resources used as reference for this and the other videos in the series:
    Incentivized:
    - Building Evolutionary Architectures: amzn.to/337bPwj
    - Cracking the Coding Interview: amzn.to/3cEvabk
    - Building Microservices: Designing Fine-Grained Systems: amzn.to/3ibsQtg
    - Risk Driven Architecture: amzn.to/3a8wdQC
    - Microservices Patterns: amzn.to/3e5C7Ds
    Others:
    - Software Architecture Patterns: www.oreilly.com/programming/f...
    - Martin Fowler's Architecture Post: martinfowler.com/architecture/
    - 10 Common Software Architectural Patterns in a Nutshell: towardsdatascience.com/10-com...
    - CAP Twelve Years Later How the Rules Have Changed: www.infoq.com/articles/cap-tw...
    - Scalable System Design Patterns: horicky.blogspot.com/2010/10/s... Design Scalable Systems: hexadix.com/design-scalable-s...
    - CAP Theorem (IBM article): www.ibm.com/cloud/learn/cap-t...
    -----------------------
    🤓 If you are preparing for a technical interview, don't miss my playlist: devstory.page.link/technical-...
    📚 I have also prepared FREE study guides available here (no subscription needed): devstory.page.link/study-guides
    -----------------------
    Remember you can reach me here:
    - #️⃣ Twitter: / cv13lm4
    -⌨️ Github: github.com/cvielma
    -----------------------
    In A Dev' Story I explain Software Development related topics from my point of view. I'll be explaining different topics in "Chapters" according to the stage of the story I think they belong. Hope is as entertaining for you as it's fun for me to create these videos
    Thanks again for watching! Feel free to like, comment, share and subscribe, it means a lot to me and helps the channel grow.
    #SoftwareArchitecture #SoftwareEngineering #Programming
  • Наука та технологія

КОМЕНТАРІ • 102

  • @RealGameTitan
    @RealGameTitan 3 роки тому +17

    Your handwriting is really impeccable.

    • @ADevStory
      @ADevStory  3 роки тому +1

      Thank you very much. Not my proudest skill xD

  • @AshrafSada
    @AshrafSada 2 роки тому +23

    Thank you for the rarely discussed topics about at the essence of software engineering on UA-cam, these information can be found in books (expensive ones), and universities in theory only, but you put such a great effort to explain in simple basic way practical use-case scenario of such concepts, great work keep it going.

    • @ADevStory
      @ADevStory  2 роки тому +3

      Oh really nice comment! Thank you very much and I'm glad you enjoyed it!

  • @Kyrogue
    @Kyrogue 3 роки тому +7

    Thanks for the series, love the explanations followed by practical examples!

  • @Endrex5Arts
    @Endrex5Arts 3 роки тому +16

    Very underrated channel!

    • @ADevStory
      @ADevStory  3 роки тому +1

      Thank you! I guess it's mostly that's newer. I need to get the word spread xD

  • @astuteToddler
    @astuteToddler 2 роки тому +1

    Every concept is concise, clear and gradual. Best video I have watched so far. Thanks a lot 😊

    • @ADevStory
      @ADevStory  2 роки тому

      You are welcome! Glad you enjoyed the video :)

  • @stachowi
    @stachowi 3 роки тому +6

    wow, your videos are technically accurate, and to the point! just subscribed thank you!

    • @ADevStory
      @ADevStory  3 роки тому

      Thank you! Hopefully more content coming soon!

  • @tumultuousgamer
    @tumultuousgamer Рік тому +1

    I knew these concepts, but putting them together like that was great! Thanks!

  • @curiousgeorge6307
    @curiousgeorge6307 2 роки тому +1

    Thank you so much for these videos!! So helpful and so well-explained

    • @ADevStory
      @ADevStory  2 роки тому

      Glad it was useful to you! If you would like me to explain another topic feel free to suggest 😁

  • @JuMiMi86
    @JuMiMi86 2 роки тому +1

    Thank you; incredibly helpful

  • @marlonconrado6136
    @marlonconrado6136 3 роки тому +2

    This kind of video should have more likes.

  • @publicfare8939
    @publicfare8939 3 роки тому +3

    Thanks for sharing, great video!

  • @bookhaven6689
    @bookhaven6689 2 роки тому +1

    thanks for sharing! very helpful!

  • @kspv2806
    @kspv2806 2 роки тому +1

    very helpful thanks

  • @user-wq2ku3kt3s
    @user-wq2ku3kt3s Рік тому +1

    Very cool series, keep going man!

    • @ADevStory
      @ADevStory  Рік тому

      Thanks! Glad you liked it!

  • @breakoutgaffe4027
    @breakoutgaffe4027 3 роки тому +1

    Great video

  • @hurk991
    @hurk991 10 місяців тому +1

    great series!

    • @ADevStory
      @ADevStory  10 місяців тому

      Thanks! Glad you liked it!

  • @rajarshibarman4474
    @rajarshibarman4474 3 роки тому +4

    Great content hope you will add more videos to this software architecture series... and if you dont mind can you also make a video on what books, courses, etc you used to learn about software architecture?

    • @ADevStory
      @ADevStory  3 роки тому +1

      Oh yeah. A good idea! Just in case, I've put some recommended books/links in the description, but definitely a video would be cool too.

  • @user-eo7pe5tc7g
    @user-eo7pe5tc7g 2 місяці тому +1

    Muy buen video. Saluos desde México

  • @Mndeto
    @Mndeto 3 роки тому +1

    Thanks!

  • @dadaabiola2474
    @dadaabiola2474 2 роки тому +1

    Game changer! 👍

  • @BeSharpInCSharp
    @BeSharpInCSharp 3 роки тому +1

    perfect video. keep them coming...

    • @ADevStory
      @ADevStory  3 роки тому

      Thank you! Any specific topic you would like to see?

    • @wdj5922
      @wdj5922 3 роки тому +1

      @@ADevStory resiliency, performance, database types (cassandra, HDFS, ...), datalake vs datawarehouse, microservices, principles of Kubernetes & Docker

  • @nihadawad4681
    @nihadawad4681 3 роки тому +1

    thank you

  • @ivandrofly
    @ivandrofly Місяць тому +2

    Thank you :)

  • @safetime100
    @safetime100 2 роки тому +1

    Very nice 👍 thanks

  • @SuSu-zd9vb
    @SuSu-zd9vb Рік тому +1

    Thank you!

  • @navjotsingh2457
    @navjotsingh2457 Рік тому +1

    ty

  • @LightVibrationPresenseKindness
    @LightVibrationPresenseKindness 4 місяці тому +1

    great channe!

    • @ADevStory
      @ADevStory  4 місяці тому

      Thank you! Glad you liked it!

  • @bito2437
    @bito2437 2 роки тому +1

    Good learning

  • @chithiravelupothirajan9974
    @chithiravelupothirajan9974 4 місяці тому +1

    Hi Chiristian, Great Content, Thanks for this wonderful video. I have one question, what is that BE represents in your layered architecture diagram?

    • @ADevStory
      @ADevStory  4 місяці тому +1

      Thank you! Glad you liked it.
      BE represents an instance of the Back-End service

  • @ibrahemtaha8177
    @ibrahemtaha8177 2 роки тому +2

    Amazing video brother!!
    could you plz make more videos like that, mm, for ex How to make X or Y app, using Cloud \ DevSecops services and all tools needed.
    Many Thanks in advance!

    • @ADevStory
      @ADevStory  2 роки тому +1

      Glad you liked it! Will try to make more videos, but trying to focus on general concepts more than specific technology. For sure can try to prepare something with cloud. Thanks for your feedback!

  • @rexcode1759
    @rexcode1759 3 роки тому +2

    your drawings really help

  • @abhishek-94
    @abhishek-94 4 місяці тому

    Hi, your channel is very good! Please make more videos on all aspects of system design and architecture.
    You mentioned horizontal scaling is not cheap to do? Isn't the reverse true, as we can get a lot of commodity hardware when we want, unlike in case of vertical scaling where we need a expensive machine.

    • @ADevStory
      @ADevStory  3 місяці тому

      Hello! thanks! I'm glad you are enjoying the content!
      So in terms of hardware, commodity hardware is cheaper but you need many more than just one server. But I was referring mostly to the architecture complexity of building software that scales horizontally vs vertically. You need to take way more considerations like load balancing, network, consistency level, transactions, etc
      Hope is clear now :)

  • @kayeshparvez
    @kayeshparvez 2 роки тому +2

    Thank you for the video. One question: if the databases are separate then how will they be synched ? and what did you actually mean by "keeping state" ?

    • @ADevStory
      @ADevStory  2 роки тому +4

      So if you want to have the database separated there are different ways. One of the most common and easiest ones is by doing sharding (explained in the video), which means dividing the data in different sets and storing them separately. If you want to keep replicas of the same information, other complexities arise, like certain coordination (aka consensus) between the different database instances.
      Keeping state means any type of data that you want to store or modify. From a user session to any specific data related to your business.
      Hope is clearer :)

    • @kayeshparvez
      @kayeshparvez 2 роки тому +2

      @@ADevStory got it now, thanks for clear explanation ❤️

    • @ADevStory
      @ADevStory  2 роки тому +1

      Anytime!

  • @ricardoolartepuell2011
    @ricardoolartepuell2011 Рік тому +1

    Great information!! what do you mean with "state" for the CAP Theorem?? :)

    • @ADevStory
      @ADevStory  Рік тому +2

      Glad you liked it!
      What I mean by state is basically data that resides on a specific server . If all your servers were equal there's no problem if the network partitions, but that's only possible if they are _stateless_.
      For example: if the servers just do sum of 2 number that you send on your request, in case of failure of some servers there's no problem regarding CAP.
      On the other hand if you are handling data, say you register new products in a catalog in the servers, if they all save data to a common database, the risk is in the database going down. If you have multiple instances of the database where you write to, they have to sync between them. And that's when the CAP theorem applies.

  • @PabloGnesutta
    @PabloGnesutta 2 роки тому +1

    Hermano! Buen contenido. Gracias.
    Sería épico si agregas una card al final del vídeo que te lleve al siguiente :)

    • @ADevStory
      @ADevStory  2 роки тому

      ¡Pensé que estaba! Vale lo reviso. ¡Muchas gracias!

  • @ntcuong01ct1
    @ntcuong01ct1 2 роки тому

    Dear Friends,
    When I design a software system, I divide it into 3 categories:
    1/ Conceptual: I will state the names of the software that will respond to the requirements of the business process from users, describe the names of the software to be processed and the behaviors.
    2/ Logical: I can define software architecture by applying architectural pattern in this step and I will include constraints on availability, scalability, maintainability. I also describe in detail the function of each component. This step
    3/ Physical: Define programming language, platform to realize the description in Logical step.
    Could you recommend?. Thank you.

  • @chrispure7461
    @chrispure7461 2 роки тому +1

    Since you are partitioning DB in to multiple DB's , BE1,BE2,BE3 are not connected to DB1,DB2,DB3 right? any BE server can send requests to any DB server based on hashvalue ? got bit confused by diagram

    • @ADevStory
      @ADevStory  2 роки тому

      Great question! It's actually left intentionally vague. It can be either way depending if you are going for replication or sharing. In sharding you could make a backend talk to different DBs based on a hash value for example. But in replication you could make it only read from a specific instance. If you need write, and want to scale the data layer (DB) then the backend s should either be able to pick a db to write to or there would another piece in the middle redirecting the traffic to the specific db instance
      Hope is clearer!

  • @user-gq8mt8dh3w
    @user-gq8mt8dh3w 6 місяців тому +1



  • @peiliangyuan9420
    @peiliangyuan9420 8 місяців тому +1

    Can you please help me what "BE1" and "BE2" mean around 5:23? Does BE mean balance equalizer? Please help. Thanks.

    • @ADevStory
      @ADevStory  8 місяців тому +1

      BE means Back-end. Just a representation of a service

    • @peiliangyuan9420
      @peiliangyuan9420 8 місяців тому +1

      Thank you so much for your quick response! Very helpful!

    • @ADevStory
      @ADevStory  8 місяців тому

      Happy to help!

  • @AhmadNurzidRosli
    @AhmadNurzidRosli Рік тому +1

    Hi Dev, i have one silly question....what is actually state and stateless means here?

    • @ADevStory
      @ADevStory  Рік тому

      Hi!
      So basically state means if you store any type of data.
      For example: if you have a service that when it receives 2 numbers it returns the sum of them it would be stateless. If you have a service that serves as a contact list and whenever you ask for a user it returns the phone number if it was registered, the phone number would be the state.
      Hope it's clearer

    • @AhmadNurzidRosli
      @AhmadNurzidRosli Рік тому

      ​@@ADevStory Thanks for your prompt respond Dev. It's really helps.
      Thanks again for the explanation.

  • @amirmhanna3997
    @amirmhanna3997 3 роки тому +2

    What's the meaning of the term "state"?

    • @ADevStory
      @ADevStory  3 роки тому +3

      State means data. It's the information you operate on and/or want to store. Is it clearer ?

  • @hasnathridoy
    @hasnathridoy 10 місяців тому

    Bro what do you mean by BE1, BE2, BE3 on the figure? 5:23

    • @ADevStory
      @ADevStory  10 місяців тому

      I just meant different backend instances (BackEnd instance 1, BackEnd instance 2 and BackEnd instance 3)

  • @marksto6581
    @marksto6581 2 роки тому

    Noice'n'eezy!

  • @BabySoothingSounds
    @BabySoothingSounds 2 роки тому +1

    What does "BE" stand for in the diagram?

    • @ADevStory
      @ADevStory  2 роки тому +1

      It stands for Back End

    • @BabySoothingSounds
      @BabySoothingSounds 2 роки тому +1

      @@ADevStory thank you!

    • @BabySoothingSounds
      @BabySoothingSounds 2 роки тому

      @@ADevStory so you’re saying the nodes are back end components that get distributed to the database, right?

    • @ADevStory
      @ADevStory  2 роки тому

      Kind of. I mean that you can distribute the processing and the data in different nodes.
      For example: if you need to do more processing, you can have multiple backend nodes to do the processing. And for the database you can do the same splitting the load between different databases.
      Not sure if it's clearer 😅

    • @ADevStory
      @ADevStory  2 роки тому

      Anytime!

  • @deathangel908
    @deathangel908 10 місяців тому

    1:15 not what I expect :)

  • @32342dsfdsv
    @32342dsfdsv Рік тому +1

    Is it possible to add english subtitles?

    • @ADevStory
      @ADevStory  Рік тому +1

      It already has right? If you press on the CC icon in UA-cam.

    • @32342dsfdsv
      @32342dsfdsv Рік тому +1

      ​@@ADevStorysorry! Thanks! Somehow I maybe missed it

    • @ADevStory
      @ADevStory  Рік тому

      No problem!

  • @carolhring
    @carolhring 3 роки тому

    What is the definition of HASH?

    • @ADevStory
      @ADevStory  3 роки тому +1

      Will link to Wikipedia: en.m.wikipedia.org/wiki/Hash_function
      But paraphrasing, basically a hash is a value that represents another value uniquely in a hash function. It could be anything but it has to be unique for the same input.
      For example, you can have a "simple hash function" that for a given string returns the number of letters in it (the hash). In this case: the hash of "house" would be 5, and the hash of "cat" would be 3.
      Hope it's clearer!

  • @tanjirmahabub5105
    @tanjirmahabub5105 2 роки тому

    You can use doodly for making hand writing animation video

    • @ADevStory
      @ADevStory  2 роки тому

      Yeah, but actually prefer pen and paper 🙂

  • @GeorgeCaldero
    @GeorgeCaldero 3 роки тому +2

    A un español hablando inglés le entiendo mejor que a un inglés hablando inglés, yea!

  • @johntube7554
    @johntube7554 2 роки тому

    Bad quality. All parts need to be in one video. Made into un necessary partitions for monetization.

    • @ADevStory
      @ADevStory  2 роки тому +1

      Hey man sad to hear you didn't enjoyed it. On each one I try to improve quality but it has been a learning curve for me. I appreciate any feedback on things that can be improved .
      Besides of that just wanted to correct you on the monetization part since that's not the reason. My goal was to make them short and more digestable.
      Videos over 8 minutes can actually include more ads inside so not a big difference monetization wise vs splitting. I also try to make them shorter than that and in the new ones I'm also removing the longer intro/closure to reduce the unnecessary filling.
      Not saying I made them without interest in monetizing but not the reason for the split :)