Skip to content

Memory store limits in multi-threaded setups #633

@Buzut

Description

@Buzut

Describe the change

Even in stateful environments (bare-metal, VPS, VM), most production setups are multi-threaded through PM2 or node cluster NITRO_PRESET=node_cluster.

Usually, memory is bound to a process. So I infer that memory based stores aren't shared between processes.

It has important implications:

  • bigger chance of cache misses
  • unreliable rate-limiting…

Behaviour is totally fine, but it might be good to mention it on the specific drivers:

Now if it's shared across processes (impressive!), it deserves to be mentioned as well as they suddenly become viable production stores for more use-cases.

URLs

No response

Additional information

  • Would you be willing to help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions