Avvenimenti
Mar 17, 9 PM - Mar 21, 10 AM
Ingħaqad mas-serje meetup biex tibni soluzzjonijiet skalabbli tal-IA bbażati fuq każijiet ta 'użu fid-dinja reali ma' żviluppaturi u esperti sħabi.
Irreġistra issaDan il-brawżer m'għadux appoġġjat.
Aġġorna għal Microsoft Edge biex tieħu vantaġġ mill-aħħar karatteristiċi, aġġornamenti tas-sigurtà, u appoġġ tekniku.
APPLIES TO: Developer | Basic | Basic v2 | Standard | Standard v2 | Premium | Premium v2
This article provides guidelines for configuring an API in API Management that implements server-sent events (SSE). SSE is based on the HTML5 EventSource
standard for streaming (pushing) data automatically to a client over HTTP after a client has established a connection.
Suġġeriment
API Management also provides native support for WebSocket APIs, which keep a single, persistent, bidrectional connection open between a client and server.
Follow these guidelines when using API Management to reach a backend API that implements SSE.
Choose service tier for long-running HTTP connections - SSE relies on a long-running HTTP connection that is supported in certain API Management pricing tiers. Long-running connections are supported in the classic and v2 API Management tiers, but not in the Consumption tier.
Keep idle connections alive - If a connection between client and backend could be idle for 4 minutes or longer, implement a mechanism to keep the connection alive. For example, enable a TCP keepalive signal at the backend of the connection, or send traffic from the client side at least once per 4 minutes.
This configuration is needed to override the idle session timeout of 4 minutes that is enforced by the Azure Load Balancer, which is used in the API Management infrastructure.
Relay events immediately to clients - Turn off response buffering on the forward-request
policy so that events are immediately relayed to the clients. For example:
<forward-request timeout="120" fail-on-error-status-code="true" buffer-response="false"/>
Avoid other policies that buffer responses - Certain policies such as validate-content
can also buffer response content and shouldn't be used with APIs that implement SSE.
Avoid logging request/response body for Azure Monitor, Application Insights, and Event Hubs - You can configure API request logging for Azure Monitor or Application Insights using diagnostic settings. The diagnostic settings allow you to log the request/response body at various stages of the request execution. For APIs that implement SSE, this can cause unexpected buffering which can lead to problems. Diagnostic settings for Azure Monitor and Application Insights configured at the global/All APIs scope apply to all APIs in the service. You can override the settings for individual APIs as needed. When logging to Event Hubs, you configure the scope and amount of context information for request/response logging by using the log-to-eventhubs. For APIs that implement SSE, ensure you have disabled request/response body logging for Azure Monitor, Application Insights, and Event Hubs.
Disable response caching - To ensure that notifications to the client are timely, verify that response caching isn't enabled. For more information, see API Management caching policies.
Test API under load - Follow general practices to test your API under load to detect performance or configuration issues before going into production.
Avvenimenti
Mar 17, 9 PM - Mar 21, 10 AM
Ingħaqad mas-serje meetup biex tibni soluzzjonijiet skalabbli tal-IA bbażati fuq każijiet ta 'użu fid-dinja reali ma' żviluppaturi u esperti sħabi.
Irreġistra issaTaħriġ
Modulu
Enable real-time updates in a web application using Azure Functions and SignalR Service - Training
Change a JavaScript web app update mechanism from polling to real-time push-based architecture with SignalR Service, Azure Cosmos DB and Azure Functions. Use Vue.js and JavaScript to use SignalR using Visual Studio Code.
Ċertifikazzjoni
Microsoft Certified: Azure Cosmos DB Developer Specialty - Certifications
Write efficient queries, create indexing policies, manage, and provision resources in the SQL API and SDK with Microsoft Azure Cosmos DB.
Dokumentazzjoni
Import a WebSocket API to Azure API Management
Learn how API Management supports WebSocket, add a WebSocket API, and WebSocket limitations.
Manage change in your APIs with Azure API Management
In this session, we'll explore the recently added versioning and revisions capability of Azure API Management, and how API publishers can now change their APIs in a safe, controlled fashion. Updating and expanding your APIs no longer means that you need to break the apps that call them.Product info: azure.microsoft.com/en-us/services/api-management/Learn more: docs.microsoft.com/en-us/azure/api-management/Documentation: docs.microsoft.com/en-us/azure/api-management/api-management-get-started-revise-apiCreat
Azure API Management policy reference - forward-request
Reference for the forward-request policy available for use in Azure API Management. Provides policy usage, settings, and examples.