首页 > 其他分享 >[Microservices] Microservices Patterns

[Microservices] Microservices Patterns

时间:2024-04-03 18:55:25浏览次数:24  
标签:Microservices pattern Strangler per Patterns user backend

Single page application (SPA)

Enabled by more powerful browsers, faster

Backend for Frontend(BFF)

  • Provide superior support compared to a generic backend
  • Inserts a layer between user experience and the resources
  • Enables customixed user experiences for different channels
  • Supports one backend type per user interface

Strangler pattern

  • Manages refactoring in stages
  • Gets its name from a  vine that stragles a tree
  • Splits functional domains
  • Replaces with new microservice per domain
  • Enables two applications to exist side-by-side

Stage of Strangler pattern

  • Transform
  • Coexist
  • Eliminate

Service discovery

Entity and aggregate pattern

Adapter pattern

 

标签:Microservices,pattern,Strangler,per,Patterns,user,backend
From: https://www.cnblogs.com/jbite9057/p/18113352

相关文章

  • [Microservices] Twelve-Factor App Methology
    ModernsoftwaredevelopmentDeliveryasaservice CentrallyhostedandaccessedthroughtheinternetWebapps,software-as-a-serviceTwelve-factorappmethodologyissuitedforwebappsCode->Deploy->Operate Factor1:Codebase:Codefactor......
  • Kubernetes Antipatterns
    InKubernetes,identifyingandavoidinganti-patternsiscrucialformaintainingarobustcontainerorchestrationenvironment.Thesemisleadingpracticesmayinitiallyappeareffectivebutcanleadtocomplications.ThisreadingexplorestenprevalentKub......
  • 23 design patterns
    ///-----------------23个设计模式是7个原则的具体形式,7原则是23个模式的凝练------------------//////-----------------target:高内聚、低耦合------------------///1.软件设计模式结构类比就是结构class或者是结构体行为类比class里面的函数创造的话,是构造出结构,让......
  • CodeForces 1928F Digital Patterns
    洛谷传送门CF传送门为什么我场上被卡常了。转化题意,将\(a,b\)差分,答案为在\(a,b\)选出相同长度的不含\(0\)的子段方案数。设\(a\)选出长度为\(i\)的不含\(0\)的子段方案数为\(x_i\),\(b\)选出长度为\(i\)的不含\(0\)的子段方案数为\(y_i\)。答案为\(\su......
  • [Design Pattern] Intro: Three groups of patterns
    Creationalpatternsprovideobjectcreationmechanismsthatincreaseflexibilityandreuseofexistingcode.Factorymethod:Providesaninterfaceforcreatingobjectsinasuperclass,butallowsubclasstoalterthetypeofobjectsthatwillbecreated.......
  • BZOJ1717 Milk Patterns 产奶的模式 (二分+后缀数组+height数组)
    发现这样起标题更能引流(ylg实锤了)题意给定一个长度为\(n\)的数组\(a\),求在\(a\)中出现了至少\(k\)次的最长子串的长度。解法考虑将一个子串拆成两个后缀,即\([l,r]=[l,n]-[r,n]\),发现一个长度为\(x\)的子串\(t\)在\(i,j\)两个位置出现过当且仅当后缀\(i,j\)有......
  • 微服务(Microservices)
    微服务(Microservices)出处本文是于2014年由JamesLewis和MartinFowler共同编写的文章-微服务(Microservices)的译文原文网址:https://martinfowler.com/articles/microservices.html前言"微服务架构"这个术语在过去几年中频繁被提到,用来描述一种将软件应用程序设计为可独立......
  • Microservice- Resiliency patterns: Circuit Breaker Pattern
    Theretrypatternworkswellforcoveringtransientfailures,butifwedon’tknow howlongtheproblemwilllast,wemayendupputtingahighloadondependentserviceswithinfiniteretries.Let’slookatasmarterversionoftheretrypatternthat bre......
  • Microservice- Resiliency patterns: Retry Pattern
    RetryPatternTransientfaultsoccurwhenamomentarylossofservicefunctionalityself-corrects. TheretrypatterningRPCenablesustoretryafailedcallautomaticallyandthusis perfectfortransientfaultssuchasthese:Instantnetworkfailures......
  • Microservice- Resiliency patterns: Timeout Pattern
    TimeoutPatternWhatiscontext.Context?The contextinGoenablesyoutospecifydeadlines,cancellationsignals,orkey-valuepairs availablebetweenprocesses. context.WithDeadlinerequiresatargetdateasaparameter,butthereisaneasierstep: c......