Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea for an efficient storage #1426

Open
guimard opened this issue Dec 21, 2024 · 1 comment
Open

Idea for an efficient storage #1426

guimard opened this issue Dec 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@guimard
Copy link
Member

guimard commented Dec 21, 2024

Most of email users keep inactive mails into their mailboxes, then the company storage size grows always (and then the cost).

The idea here is to split S3 storage into 2 S3 services : hot storage and cold storage, the cold one is a low speed storage like Amazon glacier.

  • a mail unread for more than "delay" is moved from hot storage into cold storage, only Cassandra data stays active
  • when user wants to open a mail stored into cold storage, the James API may return a "Wait for X" to the client which will wait for X to call the API and get the mail. The X delay permits to move back the mail from cold to hot storage
@guimard guimard added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Dec 21, 2024
@chibenwa
Copy link
Member

Can be done transparently with S3 with lifecycle policies

(if your s3 supplier supports it!)

Example:

aws s3api put-bucket-lifecycle-configuration --bucket nom-du-bucket --lifecycle-configuration '{
  "Rules": [
    {
      "ID": "MoveToGlacierAfterOneYear",
      "Filter": {
        "Prefix": ""
      },
      "Status": "Enabled",
      "Transitions": [
        {
          "Days": 365,
          "StorageClass": "GLACIER"
        }
      ]
    }
  ]
}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants