Journey Towards Cloud Architecture

Published Sep 23 2021 08:53 PM 2,810 Views
Microsoft

In this article, @i-am-dan and @pjirsa (Microsoft’s Cloud Solutions Architects) highlight the benefits of a modern event-based cloud architecture while migrating a legacy WebAPI to Azure.

 

Our Story

Our legacy API (Hackathon registration service)

DanielKim_0-1632419899038.png

(Figure 1)

 

Figure 1 represents the architecture of our original Hackathon Registration service.

It includes the following components:

  • Registration Form — A website which collects registration info from a new hackathon participant.
  • Registration API — An ASP.NET Core WebAPI providing CRUD over the registration data.
  • Registration DB — An Azure SQL Database to persist registration data.

Over time, additional functionality and business logic have been added to the legacy API. Some examples are:

  • Adding a new user to a mailing list service (Mailchimp).
  • Inviting new guest users to an Azure AD tenant.
  • Adding a new user to a Microsoft Teams team and channels.

And more requirements mean more code!

Our technical debt and existing design patterns were making it challenging to adapt to the new requirements.

 

While the core functionality of collecting and storing user registration information remains constant, each hackathon event usually has its own requirements around other capabilities. Some events want to use an alternate mailing list provider. Others want to configure a unique hierarchy for teams and channels. Our API codebase quickly started filling up with conditional statements and logical branches making it nearly impossible to test and difficult to maintain.

 

While the American divorce rate has dropped, we knew the answer to our problem was to decouple. We want to decouple what we currently have into separate components. Each component takes care of an atomic piece of business logic and should be easily modifiable without disrupting other components. This removes the need to bake unnecessary code into our base business logic. We decided to take a spike and design out how we can accomplish that using out of the box Azure services.

 

What does this have to do with me?

Though this API is a small example we believe componentizing your architecture while it’s still small is a big step towards modernizing your architecture.

 

As developers, we believe in Clean Code. We have to think software architecture, similarly. Each small component is doing only what it is supposed to and then passes control to another component. This helps us to architect cleaner and sensible solutions in the cloud.

 

Whether you are already on the cloud or just thinking about modernizing your current architecture for the cloud, this article will hopefully give you a decent grasp of how you can go about approaching it the right way — or at least a better way. There’s no one design pattern to address all solutions of course.

 

Options Options Options

 

App Service

One of the quickest way to modernize your software is using Azure App Service. This way you allow Azure to handle all the networking and security for you. Here are some great ways to secure your App Services!

(VM is of course another route but going back to our reasoning we want to make sure things are small and manageable.)

 

You can either host all your messy giant application in the App Service, OR you can refactor like mentioned above and put them into separate App Services and this gets into the territory of Microservices.

 

Did we mention the cost can be significantly cheaper?

 

Serverless

One step further than an app service route is the Serverless Azure Functions route. This is where Azure dynamically manages the allocation and provisioning of servers. All the benefit of the App Service but with added bonus of being only charged when it’s invoked. Scott Guthrie calls it the ‘invocation model’ where you are only responsible for chargers when the resource is called.

 

Now… the fun(?) part!

 

 

Events and Messages

As you manage multiple components, event and messaging architecture becomes very important. We want our services to communicate and respond to each other. However, if we make direct calls between them, we are re-introducing strict dependencies. Ideally, these services should be able to communicate without needing any specific knowledge about what those services are, or where they are located. To accomplish this, we introduce an eventing system.

 

Should I use events or messages?

  • Events Think of it as a notification. The sender of an event does not necessarily care who receives or acts on the event. Eventing systems typically provide confirmation that an event has been submitted, and no response to the sender that a subscriber has consumed or processed the event.
  • Messaging Think of it as a task given by System A to System B. Messages usually contain a data payload. Messaging systems can accommodate a more formal relationship between a publisher and a subscriber. The sender generally knows who the consumer will be and is sending a data payload that the consumer expects for processing.

Whichever direction you go you need a Broker.

 

The broker we chose for our example is Azure Event Grid.

> Checkout the doc which explains different event-driven services in Azure

 

Our Solution

DanielKim_1-1632420074586.png

(Figure 2) represents the architecture of our refactored solution.

 

The core functionality of the API is still there. But we have moved all the customizable supporting features out to their own services.

 

In order to decouple them from the original API, and orchestrate the business logic, an Event Grid Topic has been implemented. This service receives event notifications from the API when operations are performed on the registration data.

 

Our supporting feature services can subscribe to these notifications to take the appropriate action when changes in the system occur.

 

What are the benefits?

The immediate impact of this redesign is tremendous.

  • Each component is completely autonomous. Interdependencies are decoupled and cross-service communication is faciliated by a highly fault-tolerant messaging system.
  • Cyclomatic Complexity of each component is greatly reduced. In some cases reaching a perfect score. This has the added benefit of making the code easier to test and easier for developers to understand. Not only are unit tests easier, but integration testing can be done by testing each component individually. For example, before the changes, we would have to submit an entire “new user” request through the API to make sure that the “Add to Mailchimp” feature was working properly. Now, we can just test that one service on its own.
  • Updates to the system are much easier now. Each of the supporting services are “plug-n-play”. For example, we can easily swap out the Mailchimp service for another service that interfaces with SendGrid.
  • Event Grid allows multiple subscriptions to the same event, which makes adding new features and layering in additional business logic a snap.

 

The downside

You might be saying, “But now there are so many more ‘things’ to deal with!”. Yes, that is true. But the benefits FAR out-weigh the downsides here. Cloud platforms (such as Azure) provide a wealth of governance and management tools out of the box that make it easy to provision, manage, and monitor ‘all the things’.

 

Lesson to be learnt

In hindsight I guess we got to this point because we didn’t have a good design discussion when the API was being created.

 

But I’m sure lot of development shops do similar things. In order to push code out, the design you think is going to last doesn’t really do you any good, OR you just write code without designing at all! IT’S OK! The point is to LEARN from what you have built and try to continuously improve.

 

The cloud offers flexibility. A light-weight, adaptable design for the cloud is more resilient to changes in feature requirements. As your needs change and grow, you are not locked in to the server or license you bought last year, you can scale up, down, out and in whenever you need to and the cost is only for what you use.

 

The Final Word

Migrating legacy application architectures to the cloud sometimes requires a shift in perspective and thought-process. These cloud-native patterns can seem foreign and complicated at first. But with a little time and experience you will start to see the flexibility, scalability, and cost benefits of these designs.

%3CLINGO-SUB%20id%3D%22lingo-sub-2780579%22%20slang%3D%22en-US%22%3EJourney%20Towards%20Cloud%20Architecture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2780579%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20wo%20wp%20wq%20wr%20ws%20wt%20wu%20wv%20ww%20wx%20wy%20wz%20xa%20xb%20oh%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EIn%20this%20article%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fi-am-dan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3E%40i-am-dan%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FA%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fpjirsa%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3E%40pjirsa%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(Microsoft%E2%80%99s%20Cloud%20Solutions%20Architects)%20highlight%20the%20benefits%20of%20a%20modern%20event-based%20cloud%20architecture%20while%20migrating%20a%20legacy%20WebAPI%20to%20Azure.%3C%2FP%3E%0A%3CH2%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId--349794598%22%20id%3D%22toc-hId--349794572%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22be56%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId-2137718235%22%20id%3D%22toc-hId-2137718261%22%3E%3CSTRONG%20class%3D%22be%22%3EOur%20Story%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EOur%20legacy%20API%20(Hackathon%20registration%20service)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanielKim_0-1632419899038.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F312460i82A1FB0AF56629E0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanielKim_0-1632419899038.png%22%20alt%3D%22DanielKim_0-1632419899038.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E(Figure%201)%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EFigure%201%20represents%20the%20architecture%20of%20our%20original%20Hackathon%20Registration%20service.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EIt%20includes%20the%20following%20components%3A%3C%2FP%3E%0A%3CUL%20class%3D%22%22%3E%0A%3CLI%20id%3D%22a75b%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CEM%20class%3D%22zc%22%3ERegistration%20Form%20%E2%80%94%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3EA%20website%20which%20collects%20registration%20info%20from%20a%20new%20hackathon%20participant.%3C%2FLI%3E%0A%3CLI%20id%3D%228f5e%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CEM%20class%3D%22zc%22%3ERegistration%20API%20%E2%80%94%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3EAn%20ASP.NET%20Core%20WebAPI%20providing%20CRUD%20over%20the%20registration%20data.%3C%2FLI%3E%0A%3CLI%20id%3D%22438e%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CEM%20class%3D%22zc%22%3ERegistration%20DB%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%E2%80%94%20An%20Azure%20SQL%20Database%20to%20persist%20registration%20data.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EOver%20time%2C%20additional%20functionality%20and%20business%20logic%20have%20been%20added%20to%20the%20legacy%20API.%20Some%20examples%20are%3A%3C%2FP%3E%0A%3CUL%20class%3D%22%22%3E%0A%3CLI%20id%3D%228e2d%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3EAdding%20a%20new%20user%20to%20a%20mailing%20list%20service%20(Mailchimp).%3C%2FLI%3E%0A%3CLI%20id%3D%22f282%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3EInviting%20new%20guest%20users%20to%20an%20Azure%20AD%20tenant.%3C%2FLI%3E%0A%3CLI%20id%3D%227c4a%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3EAdding%20a%20new%20user%20to%20a%20Microsoft%20Teams%20team%20and%20channels.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EAnd%20more%20requirements%20mean%20more%20code!%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EOur%20technical%20debt%20and%20existing%20design%20patterns%20were%20making%20it%20challenging%20to%20adapt%20to%20the%20new%20requirements.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EWhile%20th%3CSPAN%3Ee%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ecore%20functionality%20of%20collecting%20and%20storing%20user%20registration%20information%20remains%20constant%2C%20each%20hackathon%20event%20usually%20has%20its%20own%20requirements%20around%20other%20capabilities.%20Some%20events%20want%20to%20use%20an%20alternate%20mailing%20list%20provider.%20Others%20want%20to%20configure%20a%20unique%20hierarchy%20for%20teams%20and%20channels.%20Our%20API%20codebase%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%20class%3D%22zc%22%3Equickly%20started%20filling%20up%20with%20conditional%20statements%20and%20logical%20branches%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3Emaking%20it%20nearly%20impossible%20to%20test%20and%20difficult%20to%20maintain.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EWhile%20the%20American%20divorce%20rate%20has%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fwww.census.gov%2Flibrary%2Fstories%2F2020%2F12%2Funited-states-marriage-and-divorce-rates-declined-last-10-years.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20nofollow%20noreferrer%22%3Edropped%3C%2FA%3E%2C%20we%20knew%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20class%3D%22wm%20hq%22%3Eanswer%20to%20our%20problem%20was%20to%20decouple%3C%2FSTRONG%3E.%20We%20want%20to%20decouple%20what%20we%20currently%20have%20into%20separate%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%20class%3D%22zc%22%3Ecomponents%3C%2FEM%3E.%20Each%20component%20takes%20care%20of%20an%20atomic%20piece%20of%20business%20logic%20and%20should%20be%20easily%20modifiable%20without%20disrupting%20other%20components.%20This%20removes%20the%20need%20to%20bake%20unnecessary%20code%20into%20our%20base%20business%20logic.%20We%20decided%20to%20take%20a%20spike%20and%20design%20out%20how%20we%20can%20accomplish%20that%20using%20out%20of%20the%20box%20Azure%20services.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%2206af%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId-330263772%22%20id%3D%22toc-hId-330263798%22%3EWhat%20does%20this%20have%20to%20do%20with%20me%3F%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EThough%20this%20API%20is%20a%20small%20example%20we%20believe%20componentizing%20your%20architecture%20while%20it%E2%80%99s%20still%20small%20is%20a%20big%20step%20towards%20modernizing%20your%20architecture.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EAs%20developers%2C%20we%20believe%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fdev.to%2Fdanialmalik%2Fa-brief-guide-to-clean-code-functions-104h%23%3A~%3Atext%3DA%2520Brief%2520Guide%2520to%2520Clean%2520Code%253A%2520Functions%25201%2Cof%2520the%2520system%2520while%2520classes%2520are%2520the%2520nouns.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20nofollow%20noreferrer%22%3EClean%20Code%3C%2FA%3E.%20We%20have%20to%20think%20software%20architecture%2C%20similarly.%20Each%20small%20component%20is%20doing%20only%20what%20it%20is%20supposed%20to%20and%20then%20passes%20control%20to%20another%20component.%20This%20helps%20us%20to%20architect%20cleaner%20and%20sensible%20solutions%20in%20the%20cloud.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EWhether%20you%20are%20already%20on%20the%20cloud%20or%20just%20thinking%20about%20modernizing%20your%20current%20architecture%20for%20the%20cloud%2C%20this%20article%20will%20hopefully%20give%20you%20a%20decent%20grasp%20of%20how%20you%20can%20go%20about%20approaching%20it%20the%20right%20way%20%E2%80%94%20or%20at%20least%20a%20better%20way.%20There%E2%80%99s%20no%20one%20design%20pattern%20to%20address%20all%20solutions%20of%20course.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EOptions%20Options%20Options%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%225077%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId--1477190691%22%20id%3D%22toc-hId--1477190665%22%3EApp%20Service%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EOne%20of%20the%20quickest%20way%20to%20modernize%20your%20software%20is%20using%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EAzure%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EApp%20Service%3C%2FSTRONG%3E.%20This%20way%20you%20allow%20Azure%20to%20handle%20all%20the%20networking%20and%20security%20for%20you.%20Here%20are%20some%20great%20ways%20to%20secure%20your%20App%20Services!%3C%2FP%3E%0A%3CUL%20class%3D%22%22%3E%0A%3CLI%20id%3D%227124%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapp-service%2Fnetworking%2Fprivate-endpoint%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3EApp%20Service%20Private%20Endpoint%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20id%3D%2204f6%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapp-service%2Fapp-service-ip-restrictions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3EApp%20Service%20Access%20Restriction%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20id%3D%22d820%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapp-service%2Fenvironment%2Fintro%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3EApp%20Service%20Environment%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CEM%20class%3D%22zc%22%3E(VM%20is%20of%20course%20another%20route%20but%20going%20back%20to%20our%20reasoning%20we%20want%20to%20make%20sure%20things%20are%20small%20and%20manageable.)%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EYou%20can%20either%20host%20all%20your%20messy%20giant%20application%20in%20the%20App%20Service%2C%20OR%20you%20can%20refactor%20like%20mentioned%20above%20and%20put%20them%20into%20separate%20App%20Services%20and%20this%20gets%20into%20the%20territory%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fwww.martinfowler.com%2Fmicroservices%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20nofollow%20noreferrer%22%3EMicroservices%3C%2FA%3E.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EDid%20we%20mention%20the%20cost%20can%20be%20significantly%20cheaper%3F%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%227b08%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId-1010322142%22%20id%3D%22toc-hId-1010322168%22%3EServerless%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EOne%20step%20further%20than%20an%20app%20service%20route%20is%20the%20Serverless%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Ffunctions-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3EAzure%20Functions%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eroute.%20This%20is%20where%20Azure%20dynamically%20manages%20the%20allocation%20and%20provisioning%20of%20servers.%20All%20the%20benefit%20of%20the%20App%20Service%20but%20with%20added%20bonus%20of%20being%20only%20charged%20when%20it%E2%80%99s%20invoked.%20Scott%20Guthrie%20calls%20it%20the%20%E2%80%98%3CEM%20class%3D%22zc%22%3Einvocation%20model%3C%2FEM%3E%E2%80%99%20where%20you%20are%20only%20responsible%20for%20chargers%20when%20the%20resource%20is%20called.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3ENow%E2%80%A6%20the%20fun(%3F)%20part!%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%224c11%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId--797132321%22%20id%3D%22toc-hId--797132295%22%3EEvents%20and%20Messages%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EAs%20you%20manage%20multiple%20components%2C%20event%20and%20messaging%20architecture%20becomes%20very%20important.%20We%20want%20our%20services%20to%20communicate%20and%20respond%20to%20each%20other.%20However%2C%20if%20we%20make%20direct%20calls%20between%20them%2C%20we%20are%20re-introducing%20strict%20dependencies.%20Ideally%2C%20these%20services%20should%20be%20able%20to%20communicate%20without%20needing%20any%20specific%20knowledge%20about%20what%20those%20services%20are%2C%20or%20where%20they%20are%20located.%20To%20accomplish%20this%2C%20we%20introduce%20an%20eventing%20system.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EShould%20I%20use%20events%20or%20messages%3F%3C%2FP%3E%0A%3CUL%20class%3D%22%22%3E%0A%3CLI%20id%3D%22aa6e%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EEvents%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EThink%20of%20it%20as%20a%20notification.%20The%20sender%20of%20an%20event%20does%20not%20necessarily%20care%20who%20receives%20or%20acts%20on%20the%20event.%20Eventing%20systems%20typically%20provide%20confirmation%20that%20an%20event%20has%20been%20submitted%2C%20and%20no%20response%20to%20the%20sender%20that%20a%20subscriber%20has%20consumed%20or%20processed%20the%20event.%3C%2FLI%3E%0A%3CLI%20id%3D%22a219%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EMessaging%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3EThink%20of%20it%20as%20a%20task%20given%20by%20System%20A%20to%20System%20B.%20Messages%20usually%20contain%20a%20data%20payload.%20Messaging%20systems%20can%20accommodate%20a%20more%20formal%20relationship%20between%20a%20publisher%20and%20a%20subscriber.%20The%20sender%20generally%20knows%20who%20the%20consumer%20will%20be%20and%20is%20sending%20a%20data%20payload%20that%20the%20consumer%20expects%20for%20processing.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EWhichever%20direction%20you%20go%20you%20need%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%20class%3D%22zc%22%3EBroker%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EThe%20broker%20we%20chose%20for%20our%20example%20is%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fevent-grid%2Foverview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3EAzure%20Event%20Grid%3C%2FA%3E.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fevent-grid%2Fcompare-messaging-services%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20noreferrer%22%3ECheckout%20the%20doc%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewhich%20explains%20different%20event-driven%20services%20in%20Azure%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%225b5f%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId-1690380512%22%20id%3D%22toc-hId-1690380538%22%3EOur%20Solution%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanielKim_1-1632420074586.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F312461i8E08DF9FE18F5C80%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanielKim_1-1632420074586.png%22%20alt%3D%22DanielKim_1-1632420074586.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E(Figure%202)%20represents%20the%20architecture%20of%20our%20refactored%20solution.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EThe%20core%20functionality%20of%20the%20API%20is%20still%20there.%20But%20we%20have%20moved%20all%20the%20customizable%20supporting%20features%20out%20to%20their%20own%20services.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EIn%20order%20to%20decouple%20them%20from%20the%20original%20API%2C%20and%20orchestrate%20the%20business%20logic%2C%20an%20Event%20Grid%20Topic%20has%20been%20implemented.%20This%20service%20receives%20event%20notifications%20from%20the%20API%20when%20operations%20are%20performed%20on%20the%20registration%20data.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EOur%20supporting%20feature%20services%20can%20subscribe%20to%20these%20notifications%20to%20take%20the%20appropriate%20action%20when%20changes%20in%20the%20system%20occur.%3C%2FP%3E%0A%3CH2%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId--117073951%22%20id%3D%22toc-hId--117073925%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%224308%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId--1924528414%22%20id%3D%22toc-hId--1924528388%22%3EWhat%20are%20the%20benefits%3F%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EThe%20immediate%20impact%20of%20this%20redesign%20is%20tremendous.%3C%2FP%3E%0A%3CUL%20class%3D%22%22%3E%0A%3CLI%20id%3D%22c1c4%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3EEach%20component%20is%20completely%20autonomous.%20Interdependencies%20are%20decoupled%20and%20cross-service%20communication%20is%20faciliated%20by%20a%20highly%20fault-tolerant%20messaging%20system.%3C%2FLI%3E%0A%3CLI%20id%3D%22811c%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CA%20class%3D%22ay%20ow%22%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCyclomatic_complexity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20ugc%20nofollow%20noreferrer%22%3ECyclomatic%20Complexity%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eof%20each%20component%20is%20greatly%20reduced.%20In%20some%20cases%20reaching%20a%20perfect%20score.%20This%20has%20the%20added%20benefit%20of%20making%20the%20code%20easier%20to%20test%20and%20easier%20for%20developers%20to%20understand.%20Not%20only%20are%20unit%20tests%20easier%2C%20but%20integration%20testing%20can%20be%20done%20by%20testing%20each%20component%20individually.%20For%20example%2C%20before%20the%20changes%2C%20we%20would%20have%20to%20submit%20an%20entire%20%E2%80%9Cnew%20user%E2%80%9D%20request%20through%20the%20API%20to%20make%20sure%20that%20the%20%E2%80%9CAdd%20to%20Mailchimp%E2%80%9D%20feature%20was%20working%20properly.%20Now%2C%20we%20can%20just%20test%20that%20one%20service%20on%20its%20own.%3C%2FLI%3E%0A%3CLI%20id%3D%228bb7%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3EUpdates%20to%20the%20system%20are%20much%20easier%20now.%20Each%20of%20the%20supporting%20services%20are%20%E2%80%9Cplug-n-play%E2%80%9D.%20For%20example%2C%20we%20can%20easily%20swap%20out%20the%20Mailchimp%20service%20for%20another%20service%20that%20interfaces%20with%20SendGrid.%3C%2FLI%3E%0A%3CLI%20id%3D%22f807%22%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20zd%20wo%20wp%20wq%20ze%20wr%20ws%20wt%20zf%20wu%20wv%20ww%20zg%20wx%20wy%20wz%20zh%20xa%20xb%20xc%20yz%20za%20zb%20by%22%20data-selectable-paragraph%3D%22%22%3EEvent%20Grid%20allows%20multiple%20subscriptions%20to%20the%20same%20event%2C%20which%20makes%20adding%20new%20features%20and%20layering%20in%20additional%20business%20logic%20a%20snap.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId-562984419%22%20id%3D%22toc-hId-562984445%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%227595%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId-429299695%22%20id%3D%22toc-hId-429299721%22%3EThe%20downside%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EYou%20might%20be%20saying%2C%20%E2%80%9C%3CEM%20class%3D%22zc%22%3EBut%20now%20there%20are%20so%20many%20more%20%E2%80%98things%E2%80%99%20to%20deal%20with!%3C%2FEM%3E%E2%80%9D.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EYes%2C%20that%20is%20true%3C%2FSTRONG%3E.%20But%20the%20benefits%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20class%3D%22wm%20hq%22%3EFAR%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eout-weigh%20the%20downsides%20here.%20Cloud%20platforms%20(such%20as%20Azure)%20provide%20a%20wealth%20of%20governance%20and%20management%20tools%20out%20of%20the%20box%20that%20make%20it%20easy%20to%20provision%2C%20manage%2C%20and%20monitor%20%E2%80%98all%20the%20things%E2%80%99.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22aaff%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId--1378154768%22%20id%3D%22toc-hId--1378154742%22%3ELesson%20to%20be%20learnt%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%3CEM%20class%3D%22zc%22%3EIn%20hindsight%20I%20guess%20we%20got%20to%20this%20point%20because%20we%20didn%E2%80%99t%20have%20a%20good%20design%20discussion%20when%20the%20API%20was%20being%20created%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EBut%20I%E2%80%99m%20sure%20lot%20of%20development%20shops%20do%20similar%20things.%20In%20order%20to%20push%20code%20out%2C%20the%20design%20you%20think%20is%20going%20to%20last%20doesn%E2%80%99t%20really%20do%20you%20any%20good%2C%20OR%20you%20just%20write%20code%20without%20designing%20at%20all!%20IT%E2%80%99S%20OK!%20The%20point%20is%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%20class%3D%22zc%22%3ELEARN%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efrom%20what%20you%20have%20built%20and%20try%20to%20continuously%20improve.%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20yu%20wo%20wp%20wq%20yv%20wr%20ws%20wt%20yw%20wu%20wv%20ww%20yx%20wx%20wy%20wz%20yy%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EThe%20cloud%20offers%20flexibility.%20A%20light-weight%2C%20adaptable%20design%20for%20the%20cloud%20is%20more%20resilient%20to%20changes%20in%20feature%20requirements.%20As%20your%20needs%20change%20and%20grow%2C%20you%20are%20not%20locked%20in%20to%20the%20server%20or%20license%20you%20bought%20last%20year%2C%20you%20can%20scale%20up%2C%20down%2C%20out%20and%20in%20whenever%20you%20need%20to%20and%20the%20cost%20is%20only%20for%20what%20you%20use.%3C%2FP%3E%0A%3CH2%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId-1109358065%22%20id%3D%22toc-hId-1109358091%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%226ed2%22%20class%3D%22xd%20xe%20uu%20bv%20fs%20xf%20xg%20xh%20xi%20xj%20xk%20xl%20xm%20xn%20xo%20xp%20xq%20xr%20xs%20xt%20xu%20xv%20xw%20xx%20xy%20xz%20by%22%20data-selectable-paragraph%3D%22%22%20id%3D%22toc-hId--698096398%22%20id%3D%22toc-hId--698096372%22%3EThe%20Final%20Word%3C%2FH2%3E%0A%3CP%20class%3D%22wk%20wl%20uu%20wm%20b%20wn%20ya%20wo%20wp%20wq%20yb%20wr%20ws%20wt%20yc%20wu%20wv%20ww%20yd%20wx%20wy%20wz%20ye%20xa%20xb%20xc%20pk%20by%22%20data-selectable-paragraph%3D%22%22%3EMigrating%20legacy%20application%20architectures%20to%20the%20cloud%20sometimes%20requires%20a%20shift%20in%20perspective%20and%20thought-process.%20These%20cloud-native%20patterns%20can%20seem%20foreign%20and%20complicated%20at%20first.%20But%20with%20a%20little%20time%20and%20experience%20you%20will%20start%20to%20see%20the%20flexibility%2C%20scalability%2C%20and%20cost%20benefits%20of%20these%20designs.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2780579%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanielKim_0-1632455410072.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F312573i19F1786774E73A37%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanielKim_0-1632455410072.jpeg%22%20alt%3D%22DanielKim_0-1632455410072.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ELet's%20make%20my%20app%20cloud%20ready!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2780579%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Service%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBest%20Practices%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGet%20Started%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EServerless%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Sep 23 2021 08:53 PM
Updated by: