• [Web] Monolith vs Microservices


    Monolith Microservices
    Self-contained application that is deployed as one unit Independently-deployed applications that communicate through networks

    Pros

    • One deployment
    • Smaller overhead
    • Less cognitive overload

    Pros

    • Scale
    • Cost Effectiveness
    • Parallel Development
    • Flexibility
     

    Cons

    • Requires extra time for setup
    • Extra effort to mange the independent parts
    • Too much repos, cogniive overload from switching

    Microservice Benefits

      • Scale
        Lean applications that are able to tailor their logic and infrastructure to their specific business needs. More-easily architected for horizontally-scaling.
      • Development in Parallel
        Teams can develop and deploy their own codebases.
      • Cost Effectiveness
        Utilize resources only for what is necessary for the specific microservice.
      • Flexibility Choose technologies that make the most sense for the team and business.

     

    Monolith or Microservices 

    You are the lone developer in charge of a small project that isn’t expected to grow in size. Should you use monolith or microservice architecture? Why?

    Answer: Monolith

    An organization wants to build a new platform that involves collaboration between a data team that uses Python and an applications team that uses NodeJS. Should the organization use monolith or microservice architecture? Why?

    Answer: microservice

    • Parallel Development
    • Flexibility

    You are working for an early-stage startup with constantly changing business requirements. Should your team use monolith or microservice architecture? Why?

     Answer: Monolith

    • Easy to setup, won't spend too much time

    You are working with one other developer to build the first iteration of a proof-of-concept application as part of a race to be the first to market. Should you use monolith or microservice architecture? Why?

    Answer:  monolith

    You are working on a hobby project that is very limited in financial resources. Should you use monolith or microservice architecture? Why?

    Answer: monolith

  • 相关阅读:
    C++类模板——博客链接
    static成员变量
    C++之++操作符重载
    运算符重载笔记
    纯虚函数(pure virtual function )和抽象类(abstract base class)
    thinkphp 无限极分类的数据库设计及效果测试
    thinkphp 对百度编辑器里的内容进行保存
    thinkphp 最简单的引入百度编辑器的方法
    thinkphp文章列表及删除文章
    thinkphp添加后台的构思以及添加数据功能
  • 原文地址:https://www.cnblogs.com/Answer1215/p/14584555.html
Copyright © 2020-2023  润新知