package http
Allow to make HTTP calls in a managed way with rate limiting.
It uses lolhttp as HTTP client.
- Alphabetic
- By Inheritance
- http
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
HttpPlatform
(maxConcurrentRequests: Int, rateLimits: Seq[(String, RateLimit)]) extends ExecutionPlatform with Product with Serializable
Allow to make HTTP calls in a managed way with rate limiting.
Allow to make HTTP calls in a managed way with rate limiting. Globally the platform limits the number of concurrent requests on the platform. Additionnaly a rate limiter must be defined for each host allowed to be called by this platform.
Example:
platforms.http.HttpPlatform( maxConcurrentRequests = 10, rateLimits = Seq( .*[.]criteo[.](pre)?prod([:][0-9]+)?" -> platforms.http.HttpPlatform.RateLimit(100, per = SECONDS), google.com -> platforms.http.HttpPlatform.RateLimit(1, per = SECONDS) ) ),
While being rate limited, the Job Execution is seen as WAITING in the UI.
Value Members
-
object
HttpPlatform
extends Serializable
Access to the HttpPlatform.