sunwei / nginx-event-broker

Nginx lightweight event broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx-event-broker

Nginx lightweight event broker

0 downtime, reloadable, focus on event broker, notify once, support event sourcing

http {
  ngx_event_broker_memory_allocate 10m;
  ngx_event_broker_topic t1;
  ngx_event_broker_topic t2;
  ngx_event_broker_topic t3;
  ...

  server {
    location /processQueue {
      ngx_event_broker $arg_target;
    }
    
    ...
  }
  ...
}

Installation

make nginx
make pcre
make ssl

# For static configuration with pcre only
# There is `conf-ssl` depends on your requirement
make conf

make build

Test

# Install test module
make install-test

export PATH="/usr/local/nginx/sbin:$PATH";
make test

About

Nginx lightweight event broker

License:GNU General Public License v3.0


Languages

Language:C 89.4%Language:Perl 8.2%Language:Makefile 2.4%