Welcome. This is the stream processing module for Mangolaa platform. We stream events (BidReq, BidResp, Wins etc) from Apache Kafka. Data is aggregated(counted) every minute using Apache Flink's DataStream API. Aggregated Counts are then pushed to Kafka, and saved to MySQL via this Kafka Consumer
Serialization for Aggregated Objects : JSON
Data format : JSON string compressed using gzip compression
Key : AdvId, Source Id(id of the SSP or publisher), clientId (the id of the client in the system), minute( the timestamp of the bid req rounded off to the minute).
Aggregated Object :
- adv Id : int
- client Id : int
- minute : ZonedDateTime
- count : int
- sourceId : int
Data format : JSON string compressed using gzip compression
Key : AdvId, Source Id(id of the SSP or publisher), clientId (the id of the client in the system), campaignId, creativeId, minute( the timestamp of the bid req rounded off to the minute).
Aggregated Object :
- adv Id : int
- client Id : int
- minute : ZonedDateTime
- count : int
- sourceId : int
- campaignId : int
- creativeId : int
Data format : JSON string compressed using gzip compression
Key : AdvId, Source Id(id of the SSP or publisher), clientId (the id of the client in the system), campaignId, creativeId, minute( the timestamp of the bid req rounded off to the minute).
Aggregated Object :
- adv Id : int
- client Id : int
- minute : ZonedDateTime
- count : int
- sourceId : int
- campaignId : int
- creativeId : int
Data format : JSON string compressed using gzip compression
Key : AdvId, Source Id(id of the SSP or publisher), clientId (the id of the client in the system), campaignId, creativeId, minute( the timestamp of the bid req rounded off to the minute).
Aggregated Object :
- adv Id : int
- client Id : int
- minute : ZonedDateTime
- count : int
- sourceId : int
- campaignId : int
- creativeId : int
Data format : JSON string compressed using gzip compression
Key : AdvId, Source Id(id of the SSP or publisher), clientId (the id of the client in the system), campaignId, creativeId, minute( the timestamp of the bid req rounded off to the minute).
Aggregated Object :
- adv Id : int
- client Id : int
- minute : ZonedDateTime
- count : int
- sourceId : int
- campaignId : int
- creativeId : int