Find Jobs
Hire Freelancers

Add sticky session support to Node.js cluster module

$30-100 USD

Abgesagt
Veröffentlicht vor etwa 10 Jahren

$30-100 USD

Bezahlt bei Lieferung
Node.js has a cluster module that which forks a node process for each available CPU. It therefore allows multiple workers to listen on the same port. However, there is no sticky session support, so some applications may not work with it. If one worker gets request #1, the second worker may not understand what to do with request #2 from the same session. The purpose of this project is to extend the cluster module to provide round-robin and sticky-sessions support. All requests for the same session should go to the same worker. Some possible way to do this: 1. Use a session store that is transactional and shared (redis etc.) and store where a session should be forwarded to. 2. Use a hashing method that will consistently point to the same location/worker for the same session (session could be ip/user/etc.), if the wrong worker gets the connection, forward it to the original worker. 3. Using a cookie to track browser. There already is a module called satellite that does something similar. It extends http-node-proxy to provide round-robin and sticky session support. But it has bugs. Module should be well-documented and easy to integrate with existing node programs to be able to load balance them. It should be packaged ready for npm.
Projekt-ID: 5760242

Über das Projekt

3 Vorschläge
Remote Projekt
Aktiv vor 10 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
3 Freelancer bieten im Durchschnitt $123 USD für diesen Auftrag
Avatar des Nutzers
Hi there, I think the best and easiest solution is 1, we don't have to extend the cluster module, just use an other session storage instead of memory. Let me help you doing that. Thanks
$68 USD in 1 Tag
5,0 (8 Bewertungen)
4,0
4,0

Über den Kunden

Flagge von UNITED STATES
East Brunswick, United States
5,0
107
Zahlungsmethode verifiziert
Mitglied seit Mai 16, 2011

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.