Skip to content

Support for multiple web workers (websockets?) #315

@TSMMark

Description

@TSMMark

Hi, thanks for this gem!

I'm wondering if it's possible for this gem to work with a multi-worker / load balanced architecture such as unicorn. I know the docs here say to just change the number workers to 1 — but that is not always feasible.

To my understanding, the main reason multiple-worker architecture poses an issue is because the repl session is stored in web worker memory on the server, which is only an issue because each HTTP request can be load-balanced to any worker, and that worker may or may not be the worker that had the repl session in memory.

Couldn't that issue be solved with websockets? I feel like this is kind of an obvious solution so I'm assuming there are some gotchas that I haven't thought of. Or if you are aware of any similar web console gems that work with multi-worker or use websockets I would love to check them out, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions