Software Development

Service Virtualization Use Circumstances for Cloud-Native Functions

That is the second article in a two-part sequence. The primary half is right here.

Service virtualization is uniquely suited to help the wants of cloud-native purposes. The answer’s rules help all the important thing attributes of cloud-native architectures. I’d contend that service virtualization and cloud-native architectures are constructed for each other. Simply as service virtualization is thought of important for agile growth, it’s simply as needed for supporting cloud-native purposes. 

On this part, we are going to talk about how Broadcom Service Virtualization helps every of the ten key attributes of cloud-native software techniques

Steady Microservices Utility Growth and Testing 

One of many key attributes of cloud-native purposes is using loosely coupled elements, similar to microservices. As a result of component-based techniques have quite a few dependencies on one another, use of service virtualization is very essential to help the agile growth, testing, and steady supply of such purposes. This is among the hottest use circumstances for service virtualization. See determine under. 


Service virtualization can be utilized to help each side of microservices testing, together with unit, element, integration, contract, and system testing. Plus, testing might be accomplished repeatedly all through the CI/CD pipeline. For extra particulars on utilizing service virtualization for component-based purposes, please seek advice from my earlier blogs (Steady Service Virtualization Half 1 and Half 2). 

The next sections spotlight just a few key use circumstances:

a. Technology of Artificial Digital Providers from Microservice APIs

Service virtualization can be utilized to generate an artificial digital service for a dependent element that doesn’t but exist, or is unavailable, utilizing artificial request-response pairs primarily based on the API’s definition of the service.  That is particularly helpful throughout growth and unit testing. 

The artificial digital service could also be progressively enhanced to help subsequent testing (similar to integration and system assessments) alongside the CI/CD lifecycle.

b. Help for Microservices Contract Testing

A service shopper can take a look at a service supplier utilizing artificial request-response pairs developed from its API specification. A service supplier can in flip take a look at its interactions with a shopper utilizing a validated contract—which might be applied utilizing a recorded digital service. See determine under. 

c. Help for Steady Microservices Efficiency Testing

This is among the most essential use circumstances for service virtualization. With service virtualization, we are able to really shift microservices efficiency testing left. This considerably reduces the necessity for time consuming, end-to-end load assessments that need to be performed earlier than launch. Service virtualization permits restricted, scaled efficiency testing on the element degree to validate related service degree targets (SLOs). This additionally permits scaled testing of transactions throughout a number of companies utilizing their APIs. For extra particulars on this, please seek advice from my prior weblog on steady efficiency of microservices.

d.  Help for Simpler Chaos and Damaging Testing

Digital companies present a way to help repeatable and structured chaos and detrimental situations testing. For instance, they’ll simulate such situations as non-responsiveness, downtime, or sluggish response time. That is a lot simpler and much much less time consuming than having to energy off servers or take down bodily computing cases.

e. Help for Steady Reliability Engineering

Use circumstances (c) and (d) above enable us to repeatedly validate the reliability of cloud-based purposes by making use of the rules of steady testing on the element degree. On this manner, we are able to take a look at each element change early within the lifecycle to see if its SLOs are met. With service virtualization, we are able to simulate dependent elements together with their SLOs (or SLIs if SLOs are usually not accessible). For extra info, please seek advice from my weblog on Steady Reliability.   

Help for Self-Service, Digital, Shared, and Elastic Infrastructure 

That is the second key attribute for cloud-native purposes. As mentioned in part III, groups can use digital companies as a stand-in for actual elements. Digital companies can simply be packaged into light-weight container-based VSEs, which might be deployed on-demand into ephemeral cloud environments and so they can scale mechanically as wanted. 

In actual fact, libraries of digital companies might themselves be supplied as a service (see “Service Virtualization as a Service)—with all of the capabilities of a cloud-native service—in order that they might ruled and consumed throughout a number of groups and purposes. 

Help for Isolation from Server and Operation System Dependencies 

Digital companies might be packaged into containers which may be ported throughout a wide range of pc environments, no matter the place the true finish factors are hosted. Plus, they are often deployed throughout a number of hybrid computing environments with various kinds of {hardware} and OS. This not solely contains cloud-native purposes, however legacy techniques (similar to mainframes) and different advanced techniques that these purposes must work together with. 

One use case of this attribute is service virtualization’s help for testing cloud-native purposes with function-as-a-service (FaaS) dependencies. Usually talking, FaaS implementations are usually not very moveable throughout a number of cloud suppliers. This makes it troublesome to include FaaS code into testing environments which will reside in a unique cloud. Service virtualization can be utilized to virtualize the FaaS element so it may be deployed into a neighborhood testing surroundings with mechanically scaling VSEs. This permits groups to simulate the FaaS conduct for an software beneath take a look at that relies on a FaaS endpoint. 

Help for Impartial Lifecycle Administration Utilizing Agile/DevOps 

Help for impartial life cycle administration is among the key use circumstances for service virtualization. (See my earlier weblog for extra on this subject.) Service virtualization helps to optimize steady supply. In actual fact, digital companies are key to supporting the principal of getting a devoted CI/CD pipeline for every microservice. 

Since microservices have dependencies on one another, which means that particular person CI/CD pipelines could also be impeded when a dependent microservice shouldn’t be accessible or is present process parallel growth. Digital companies assist to take away these dependencies between parallel pipelines.  Digital companies might be made accessible to different companies as wanted. See determine under. 

Notice: This precept can be utilized to help simpler canary testing. Cloud-native purposes are designed to permit frequent micro releases, for instance, of a single element. This enables us to get quick suggestions by deploying solely the modified element right into a canary surroundings. Service virtualization makes this a lot simpler and cheaper by virtualizing the remainder of the appliance ecosystem, enabling groups to give attention to the conduct of solely the modified element.  

Service virtualization helps a wealthy set of APIs that can be utilized to combine with CI/CD and different instruments for automation of deployment, orchestration, updates, and extra.

Help for Light-weight Containers 

Digital companies can simply be packaged into lightweight containers. As well as, VSEs might be deployed on-demand into ephemeral cloud environments, and scale mechanically as required  in Kubernetes clusters. 

Help for Greatest-of-Breed Languages and Frameworks

Digital companies are constructed on the protocol degree, and subsequently are typically in a position to help purposes, regardless of the programming language they’re developed in. This enables us to construct digital companies for purposes which have been created with a broad vary of languages and platforms. 

For builders, digital companies could also be even be developed as code and this strategy is supported by many programming languages.  

Help for API-Primarily based Interplay and Collaboration 

As mentioned earlier than, service virtualization permits us to create artificial digital companies from service API specs. It additionally helps intensive API-based testing (together with what’s known as “headless” testing) throughout layers of APIs usually utilized in cloud-based purposes. 

As well as, digital companies don’t simply help easy API protocols like REST. Digital companies can help a wide range of API varieties (similar to gRPC) throughout a number of kinds of software techniques. 

The determine under exhibits a typical API structure that has expertise, course of, and system APIs. Service virtualization can be utilized to not solely virtualize every of the sub-services that help the API, however all the API layer by virtualizing the “nearest neighbor.” 

For instance, we are able to run user-experience assessments on front-end gadgets by virtualizing the “omni-channel” API—with out having to arrange a take a look at surroundings for the all of the difficult stacks under it! 

As well as, service virtualization helps a wealthy set of APIs that can be utilized to combine with CI/CD and different instruments for automation of deployment, orchestration, updates, and extra.

Service virtualization will also be built-in with API Gateways to permit clear entry to API back-end companies—whether or not applied by an actual service or a digital service. See determine under. 

Help for Stateless and Stateful Providers

Digital companies might be simply created to be stand-ins for stateless companies by simulating their conduct. 

When we have to virtualize a stateful service, we are able to create digital companies which might be supported by intensive take a look at information that represents a sub-set of the stateful service’s information. We are able to achieve this by integrating with a take a look at information administration system. For extra on the interplay between digital companies and take a look at information within the context of microservices, please seek advice from my prior weblog on steady take a look at information administration

Help for Automation and Infrastructure-as-Code

Digital companies are extremely amenable to automated deployment (for instance in CI/CD pipelines), particularly when packaged as containers. These companies might be outlined as a part of infrastructure-as-code surroundings recipes, similar to Helm Charts, for automated provisioning and deployment.  

Help for Governance Fashions

Digital companies are usually deployed into Digital Service Environments. This enables us to outline governance insurance policies of digital companies that mimic these of corresponding purposes. 

Abstract and Conclusion 

Now we have examined how Broadcom Service Virtualization helps all kinds of use circumstances for cloud computing—from cloud migration to help for cloud-native computing. 

Our view is that service virtualization and cloud capabilities complement one another. By combining  Service virtualization and cloud companies, groups can set up a degree of really agile software growth and supply, which might merely not be potential with solely one in all these capabilities by itself. In actual fact, groups want to make use of service virtualization to help the necessities of cloud-native techniques. 

What's your reaction?

Leave A Reply

Your email address will not be published. Required fields are marked *