You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I think there might be a bug with the code, although I cant confirm. We are looking to horizontally scale our nginx servers so we tried to attach redis. Unfortunately, it seems that messages are either lost, or intermittently not being understood. When using in-memory there are no issues. I'm not sure if this is because of elasticache or something else. I'm willing to help troubleshoot.
Hello,
we are experience a similar issue. We used nchan in the beginning on a single EC2 machine with in-memory. For high availability are testing running the nchan on multiple pods in a EKS with redis (AWS Elasticache v5.0.6) as the backend and a NLB loadbalance. Most of the time everything runs smooth. Just sometimes the SSE messages are not received by the subscriber, and we get a 202 response for POST request of the publisher. The SSE connection is created in the checkout process. The problems goes away after the subscriber connects again. I'm willing to help troubleshoot. We are currently using nchan version 1.2.8 and ngnix version 1.18.0
config:
upstream redis_cluster {
nchan_redis_server ${REDIS_URL};
}
server {
root /var/www/phalanx/html;
index index.html;
# Listen on the server_name as specified via the ENV
server_name ${SERVER_NAME};
location / {
try_files $uri $uri/ =404;
}
#pubsub
location ~ /sub/((\w+|\-)+)$ {
nchan_subscriber;
nchan_channel_id $1;
nchan_redis_pass redis_cluster;
}
location ~ /pub/((\w+|\-)+)$ {
nchan_publisher;
nchan_channel_id $1;
nchan_message_timeout 10s;
nchan_message_buffer_length 20;
nchan_redis_pass redis_cluster;
}
location /nchan_stub_status {
nchan_stub_status;
}
listen 80;
}
Hello,
I think there might be a bug with the code, although I cant confirm. We are looking to horizontally scale our nginx servers so we tried to attach redis. Unfortunately, it seems that messages are either lost, or intermittently not being understood. When using in-memory there are no issues. I'm not sure if this is because of elasticache or something else. I'm willing to help troubleshoot.
My Config files look like this:
Server Include:
Publisher:
nginx.conf:
Each website that allows sbscribers:
The text was updated successfully, but these errors were encountered: