Skip to content

Research + Implement Citus Sharding/Tenancy #535

Open

Description

@toastercup

After speaking with Citus, it appears their open source solution is relevant to Cortex's needs. It can ensure multitenant data integrity, simplify our code via use of their gem, and increase performance via sharding. It can be modified to support nested tenancy, and we can use Citus Reference Tables to share data across shards/tenants.

This Issue is a placeholder to contain research and implementation notes for Citus.

Activity

  1. toastercup commented on Nov 6, 2017

    @toastercup
    MemberAuthor

    This module from Citus's activerecord-multi-tenant gem is pretty neat; it lets you wrap an ActiveRecord transaction in a block that auto-magically scopes the data to a tenant. It could cut down on mistakes and boilerplate.

    Not useful for ElasticSearch. But there it is.

  2. toastercup commented on Nov 6, 2017

    @toastercup
    MemberAuthor

    PS we could write something very similar for our ES queries (very easily)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions