Connect/Consume Azure services and 3rd-party services Flashcards
What components are API Mangement made of?
- API gateway
- Management plane
- Developer portal
What’s the API gateway?
an endpoint that
1. accepts API calls and route them to appropriate backends
2. verify API keys and other credentials presented w/reqs
3. caches responses to improve respone latency and minimize the load on backend services
4. Emits logs, metrics, and traces for monitoring, reporting and troubleshooting
What’s the Management plane?
the administrative interface where you set up your API program
Use it to
1. Provision/Configure API Management servie settings
2. Define/Import API schema
3. Get insights from analytics
4. Manage users
What’s the Developer portal?
auto generated, customizable website w/ doc of your APIs.
You can
1. read API doc
2. Call an API via the ineractive console
3. Download API definitions
4. Access analytics on their own usage
5. Manage API keys
What are products in API Management?
products are how APIs are surfaced to developers.
Products have one or more APIs.
Configured with a title, description and terms of use.
Products can be open or protected (must be subscribed to use)
What are groups in API Management?
Groups are used to manage the visibility of products to developers.
What are the different groups in API Management?
- Administrators; Manage API Management service instances and create the APIs, operations, and products that are used by developers. Azure subscription administrators are members of this group
- Developers; Authenticated developer portal users that build applications using your APIs. Developers are granted access to the developer portal and build applications that call the operations of an API.
- Guests; Unauthenticated developer portal users. They can be granted certain read-only access, like the ability to view APIs but not call them
What’s Managed gateways?
The managed gateway is the default gateway component that is deployed in Azure for every API Management instance in every service tier. With the managed gateway, all API traffic flows through Azure regardless of where backends implementing the APIs are hosted.
What’s self-hosted gateway?
The self-hosted gateway is an optional, containerized version of the default managed gateway. It’s useful for hybrid and multicloud scenarios where there’s a requirement to run the gateways off of Azure in the same environments where API backends are hosted. The self-hosted gateway enables customers with hybrid IT infrastructure to manage APIs hosted on-premises and across clouds from a single API Management service in Azure.
What are the different API Management policies?
- Choose policy; applies enclosed policy statements based on the outcome of evaluation of boolean expressions, like if-then-else. <when></when> element
- Forward-request; forwards incoming req to backend service specified in the req context. follow-redirects attribute
- Return-response; aborts pipeline execution and returns either a default or custom response to the caller. Default response is 200 OK with no body.
- Limit concurrency; prevent enclosed policies from executing by more than the specified no of reqs at any time. When exceeding that number, new req fails immediately w/ 429 Too many Requests status code.
- Log to Event Hub; sends message in the specified format to an Event Hub defines by a Logger entity. save req for online/offline analysis.
- Mock response; to mock APIs and operations. Aborts normal pipeline execution and return mocked response.
- Retry; executes its child policies once and then retries their execution until the retry condition becomes false or retry count is exhausted.condition attribute
What is API Management Consumption Tier suited for?
microservice based architectures and event-driven systems.
What’s Azure Event Grid?
serverless event broker that u can use to integrate apps using events
What are the 5 concepts in Azure Event Grid?
- Event; what happened
- Event sources; where the event took place
- Topics; the endpoint where publishers send events
- Event subscriptions; the endpoint/built-in mechanism to route events
- Event handlers; the app/service reacting to the event
What two types of event schemas does Azure Event Grid support?
- Event Grid event schema
- Cloud event schema
What are the built-in roles in Event Grid?
- Event Grid Subscription Reader
- Event Grid Subscription Contributor
- Event Grid Contributor
- Event Grid Sender
What’s the role of Event Grid Subscription Reader?
read Event Grid event subscriptions
What’s the role of Event Grid Subscription Contributor?
manage Event Grid event subscription operations.
What’s the role of Event Grid Contributor?
create and manage Event Grid resources
What’s the role of Event Grid Data Sender?
send events to Event Grid topics