fruit-jokes

Version, currently main branch1 version
  • main branchlatestFeb 2, 2025

github.com/luislavena/fruit-jokes

Demo Litestream multiple-replicas options

5 stars
0 dependents
License: Apache-2.0

Installation

# Add this to your shard.yml
dependencies:
  fruit-jokes:
    github: luislavena/fruit-jokes
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.14.0, < 2.0.0
License
Apache-2.0
Author
Luis Lavena
Targets
  • drift from lib/drift/src/cli.cr
  • fruit-jokes from src/main.cr

Dependencies

Runtime Dependencies

  • toro~> 0.5.1github: soveran/toro
  • drift~> 0.3.3github: luislavena/drift
  • sqlite3~> 0.21.0github: crystal-lang/crystal-sqlite3

README

fruit-jokes

This application has been set up to demo how Litestream can be used with multiple replicas to ensure durability of your data.

This is following the 3-2-1 backup strategy:

  • 3 copies of your data
  • 2 copies in different storage devices
  • 1 copy off-site

One copy of your data runs with your application. The other two copies live on different storage services, with one service being different from the other. This helps ensure backup safety.

Demos

Why Fruit Jokes?

The name comes as an homage to Kramer's attempt to build his new application, following all the new trends of the industry. Happy Festivus!

License

Licensed under the Apache License, Version 2.0. You may obtain a copy of the license here.