Class: Happyco::Inspect::Report::V1::ReportEventService::Service

Inherits:
Object
  • Object
show all
Includes:
GRPC::GenericService
Defined in:
lib/api/public/inspect/report/v1/report_services_pb.rb

Overview

  • ReportEventService is the simplest way to be notified of reports being

created Any number of clients can connect to the service and be pushed the events. HappyCo guarantees to only send one client the event at a time (in a round robin fashion). This means that you can scale event processing as easily as your web servers.

For this to work events must be acknowledged or time extensions requested before the timeout peroid. If neither of these occurs, the event will be sent to a new client. This covers 99% of cases, but if it’s essential that in the event of a frozen client (that unfreezes) that the event is not sent to another client. You can de-duplicate requests using the event ID.

When selecting a timeout and possible requesting time extensions please be wary of network travel time. We recommend setting large timeouts (10mins+) unless there is a critical reason to be resent events faster.