Request.BidAgentResponse
based on custom strategy name from Request.BidAgentRequest
.
Supported custom strategies are the following:
Flat Price Strategy - FlatPriceStrategy
Random Price Strategy - RandomPriceStrategy
Retargeting Strategy - RetargetingStrategy
Request.BidAgentRequest
and returns a Request.BidAgentResponse
AdcandidateOuterClass.Bidding.CustomStrategy
which is defined using Buzz API.AdcandidateOuterClass.Bidding.CustomStrategy.Params
, it simply uses the first one
when iterating through the param list.ChannelPipeline
.
Full HTTP response may have following error codes:
200 if it processed request successfully.
204 if request has no content.
400 if there is a IllegalArgumentException
.
500 if there is an internal error.HexbidHandlerFactory
for the list of end points
currently supported by this server.HttpServerCodec
- decodes/encodes ByteBuf
into/from HttpRequest
and
HttpContent
HttpObjectAggregator
- aggregates an HttpMessage
and its following HttpContent
s into a
single FullHttpRequest
or FullHttpResponse
.
GlobalHandler
- handles request processing for all end points.ProtobufDecoder
Request.BidAgentResponse
successfully.
204 if no bid is made for this request
400 if there is a parsing error Request.BidAgentRequest
or it fails to get bidding strategy.
500 if server experienced an error.AdcandidateOuterClass.Bidding.CustomStrategy.Params
, it simply uses the first one when iterating
through param list.ServerConfig
loads configurations from a specified property file and falls back to default
value when the file is missing or not found.
Server Configurable values:
Port
- This is the port that the HTTP server is listening on to accept new connections.
Max request size
- maximum length of aggregated content in HTTP request
Boss group size
- number of threads used by boss NioEventLoopGroup
which only accepts
incoming connection and registers the connection to the worker.
Backlog size
- the maximum queue length for incoming connection indications(a request to connect)
TCP nodelay
- option to disable Nagle's algorithm to achieve lower latency on every packet sent
Keep alive
- option to enable keep-alive packets for a socket connectionCopyright © 2017. All rights reserved.