View Source AsyncConfig (reactive_commons v0.8.0)

Configuration structure for using reactive commons abstraction

The required properties are:

  • application_name: "my_app"

Optionally you can change the default values for another property

%{
  reply_exchange: "globalReply",
  direct_exchange: "directMessages",
  events_exchange: "domainEvents",
  connection_props: "amqp://guest:guest@localhost",
  connection_assignation: %{
    ReplyListener: ListenerConn,
    QueryListener: ListenerConn,
    CommandListener: ListenerConn,
    EventListener: ListenerConn,
    NotificationEventListener: ListenerConn,
    MessageExtractor: ListenerConn,
    MessageSender: SenderConn,
    ListenerController: SenderConn,
  },
  queries_reply: true,
  with_dlq_retry: false,
  retry_delay: 500,
  max_retries: 10,
  prefetch_count: 250,
}

Link to this section Summary

Functions

Creates a new default valued AsyncConfig struct with the specified app name.

Link to this section Functions

Creates a new default valued AsyncConfig struct with the specified app name.