Architecting Database

Hi Guys,

Just wondering how is couchbase meant to be used.
Does people just dump everything in the one bucket.
Let’s say an app like Viber? Is it feasible to have everything like Call display records user objects logs etc etc. All in one bucket. or People usually spin up other instances and have them in a seperate bucket/machine.

Thanks!

It depends. But a good rule of thumb I use is:

  • Keep documents that have TTL (Time To Live) and non-TTL keep for
    every in separate buckets.
  • Type your Documents Ex.{“DocType”:“invoice”} … etc
  • Try to keep documents that are about the same size in the same bucket.