Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ API release strategies with API Gateway

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š API release strategies with API Gateway


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

Once you have adequately separated deployment and release, the next step is to choose mechanisms for controlling the progressive release of features. It is essential to select a release strategy that allows you to reduce risk in production. Because no matter how much you test a new version of your API before release, the actual test occurs when you finally put it in front of customers.

We can achieve to reduce this risk by performing a test or experiment with a small fraction of traffic and verifying the result. When the result is successful, the release to all traffic triggers. Specific strategies suit scenarios better than others and require varying degrees of additional services and infrastructure. In this post, we will explore 3 popular API release strategies that use an API Gateway nowadays.

Why use API gateway in API deployment

One benefit of moving to an API-based architecture is that we can iterate quickly and deploy new changes to our services. We also have the concept of traffic and routing established with an API Gateway for the modernized part of the architecture. API Gateway provides stages to allow you to have multiple deployed APIs behind the same gateway and it is capable of in-place updates with no downtime. Using API Gateway enables you to leverage the service's numerous API management features, such as authentication, rate throttling, observability (important metrics for APIs), multiple API versioning, and stage deployment management (deploying an API in multiple stages such as dev, test, stage, and prod).

Open source API Gateway (Apache APISIX and Traefik), Service Mesh (Istio and Linkerd) solutions are capable of doing traffic splitting and implementing functionalities like Canary Release and Blue-Green deployment. With canary testing, you can make a critical examination of a new release of an API by selecting only a small portion of your user base. We will cover the canary release next section.

Canary release

A canary release introduces a new version of the API and flows a small percentage of the traffic to the canary. In API gateways, traffic splitting makes it possible to gradually shift or migrate traffic from one version of a target service to another. For example, a new version, v1.1, of a service can be deployed alongside the original, v1.0. Traffic shifting enables you to canary test or releases your new service by at first only routing a small percentage of user traffic, say 1%, to v1.1, then shifting all of your traffic to the new service over time.

Canary release with API Gateway.png

This allows you to monitor the new service, look for technical problems, such as increased latency or error rates, and look for the desired business impact, such as an increase in key performance indicators like customer conversion ratio or average shopping checkout value. Traffic splitting enables you to run A/B or multivariate tests by dividing traffic destined for a target service between multiple versions of the service. For example, you can split traffic 50/50 across your v1.0 and v1.1 of the target service and see which performs better over a specific period of time. Learn more about the traffic split feature in Apache APISIX Ingress Controller.

Where appropriate, canary releases are an excellent option, as the percentage of traffic exposed to the canary is highly controlled. The trade-off is that the system must have good monitoring in place to be able to quickly identify an issue and roll back if necessary (which can be automated). This guide shows you how to use Apache APISIX and Flagger to quickly implement a canary release solution.

flagger-apisix-overview.png

Traffic mirroring

In addition to using traffic splitting to run experiments, you can also use traffic mirroring to copy or duplicate traffic and send this to an additional location or series of locations. Frequently with traffic mirroring, the results of the duplicated requests are not returned to the calling service or end user. Instead, the responses are evaluated out-of-band for correctness, such as comparing the results generated by a refactored and existing service, or a selection of operational properties are observed as a new service version handles the request, such as response latency or CPU required.

APIs Traffic Mirroring with API Gateway (1).png

Using traffic mirroring enables you to โ€œdark releaseโ€ services, where a user is kept in the dark about the new release but you can observe internally for the required effect.

Implementing traffic mirroring at the edge of systems has become increasingly popular over the years. APISIX offers the proxy-mirror plugin to mirror client requests. It duplicates the real online traffic to the mirroring service and enables specific analysis of the online traffic or request content without interrupting the online service.

Blue-Green

Blue-green is usually implemented at a point in the architecture that uses a router, gateway, or load balancer, behind which sits a complete blue environment and a green environment. The current blue environment represents the current live environment, and the green environment represents the next version of the stack. The green environment is checked prior to switching to live traffic, and at go live the traffic is flipped over from blue to green. The blue environment is now โ€œoffโ€ but if a problem is spotted it is a quick rollback. The next change would go from green to blue, oscillating from the first release onward.

Blue-Green API Release strategies with API Gateway (2).png

Blue-green works well due to its simplicity and it is one of the better deployment options for coupled services. It is also easier to manage persisting services, though you still need to be careful in the event of a rollback. It also requires double the number of resources to be able to run cold in parallel to the currently active environment.

Traffic management with Argo Rollouts

The strategies discussed to add a lot of value, but the rollout itself is a task that you would not want to have to manage manually. This is where a tool such as Argo Rollouts is valuable for demonstrating practically some of the concerns discussed.

Using Argo, it is possible to define a Rollout CRD (Custom Resource Definition) that represents the strategy you can take for rolling out a new canary of your API. A CRD allows Argo to extend the Kubernetes API to support rollout behavior. CRDs are a popular pattern with Kubernetes, and they allow the user to interact with one API with the extension to support different features.

You can use the Apache APISIX and Apache APISIX Ingress Controller for traffic management with Argo Rollouts. This guide shows you how to integrate ApisixRoute with Argo Rollouts using it as a weighted round-robin load balancer.

Summary

With the rise in Progressive Delivery approach, and also advanced requirements within Continuous Delivery before this, having the ability to separate the deployment and release of service (and corresponding API) is a powerful technique. The ability to canary release services and make use of API Gateway traffic split and mirroring features can provide a competitive advantage to your business in both mitigating risks of a bad release and also understanding your customerโ€™s requirements more effectively.

Related resources

Recommended content ๐Ÿ’

โž” Read the blog posts:

Communityโคต๏ธ

๐Ÿ™‹ Join the Apache APISIX Community
๐Ÿฆ Follow us on Twitter
๐Ÿ“ Find us on Slack

...



๐Ÿ“Œ API release strategies with API Gateway


๐Ÿ“ˆ 36.36 Punkte

๐Ÿ“Œ Choosing the Right API Gateway: Pricing Models for Amazon API Gateway, Apigee, Kong, and Apache APISIX


๐Ÿ“ˆ 28.19 Punkte

๐Ÿ“Œ Meet AI Gateway: An Open-Sourced Fast AI Gateway Routed to 100+ Large Language Models LLMs with One Fast and Friendly API


๐Ÿ“ˆ 23.34 Punkte

๐Ÿ“Œ API Governance: Best Practices and Strategies for Effective API Management


๐Ÿ“ˆ 22.01 Punkte

๐Ÿ“Œ How API7 Gateway Overcomes Exceptions with High Availability Strategies


๐Ÿ“ˆ 21.57 Punkte

๐Ÿ“Œ TIBCO FTP Community Edition up to 6.5.0 on Windows Server/C API/Golang API/Java API/.Net API access control


๐Ÿ“ˆ 19.37 Punkte

๐Ÿ“Œ Verizon Fios Quantum Gateway G1100 02.01.00.05 API /api URL information disclosure


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ Cook a recipe with AWS: A simple API using API-Gateway


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ Why your API gateway is not enough for API security?


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ ngrok Transforms API Delivery with the Industryโ€™s First Developer-Defined API Gateway


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ API Gateway REST API with Lambda Integration


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ Efficiently Manage Your GraphQL API with API Gateway


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ Chaining API requests with API Gateway


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ How to Deploy a Serverless Node.js API with AWS API Gateway?


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ Best Practices of API Degradation in API Gateway


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ API Inspection Best Practices: Ensuring API Gateway Stability and Efficiency


๐Ÿ“ˆ 18.94 Punkte

๐Ÿ“Œ Kaazing Gateway/Gateway JMS Edition prior 4.5.3 HF1 HTTP/WebSocket HTTP Request privilege escalation


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Amnimo to develop an industrial-use LTE gateway, Edge Gateway


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Toshiba Home Gateway HEM-GW16A/Home Gateway HEM-GW26A up to 1.2.9 Administrator Settings Screen Default Admin Password weak authentication


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Toshiba Home Gateway HEM-GW16A/Home Gateway HEM-GW26A up to 1.2.9 OS Command Injection privilege escalation


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Toshiba Home Gateway HEM-GW16A/Home Gateway HEM-GW26A up to 1.2.9 cross site scripting


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Kaazing Gateway/Gateway JMS Edition 4.0.2/4.0.3/4.0.4 WebSocket HTTP Request Response Splitting information disclosure


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Toshiba Home Gateway HEM-GW16A/Home Gateway HEM-GW26A up to 1.2.9 Developer Screen privilege escalation


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Toshiba Home Gateway HEM-GW16A/Home Gateway HEM-GW26A up to 1.2.9 Access Restriction privilege escalation


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Low CVE-2020-28415: Tranzware payment gateway project Tranzware payment gateway


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Low CVE-2020-28414: Tranzware payment gateway project Tranzware payment gateway


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ High CVE-2020-29579: Express-gateway Express-gateway docker


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ MuleSoft: Anypoint Mule Gateway vs. Anypoint Flex Gateway vs. Anypoint Service Mesh


๐Ÿ“ˆ 18.5 Punkte

๐Ÿ“Œ Release Management Risk Mitigation Strategies in Data Warehouse Deployments


๐Ÿ“ˆ 17.42 Punkte

๐Ÿ“Œ Exploring API Governance Strategies with Apache APISIX


๐Ÿ“ˆ 17.16 Punkte

๐Ÿ“Œ Practical Strategies for GraphQL API Rate Limiting


๐Ÿ“ˆ 17.16 Punkte

๐Ÿ“Œ API Monetization Strategies: Unlocking Revenue Streams in the Digital Economy


๐Ÿ“ˆ 17.16 Punkte

๐Ÿ“Œ API Strategies for Effective Database Management and Integration


๐Ÿ“ˆ 17.16 Punkte

๐Ÿ“Œ Beyond the Basics: Advanced Strategies for API Development


๐Ÿ“ˆ 17.16 Punkte

๐Ÿ“Œ Plasma 6 Release Candidate 1 has landed. Release Candidate 2 will arrive on January 31st, and the final release will land on February 28


๐Ÿ“ˆ 15.31 Punkte











matomo