e_poller v0.1.0 EPoller.Config View Source

This module contains the configuration management for queue polling

Link to this section Summary

Functions

Gets the user and default config for polling and merges them

Link to this section Functions

Link to this function get_full_config(user_config) View Source
get_full_config(map()) :: map()

Gets the user and default config for polling and merges them

Why have a config abstraction for virtually the same values seen in ExAws.SQS?

  1. In case config changes from the ExAws side. EPoller’s client shouldn’t know what the underlying implementation of SQS polling is and shouldn’t have to deal with it
  2. We don’t necessarily want to config all parameters. Polling might not function as promised if we start tweaking too many knobs (relates to 1).