Skip to content

CometBFT uses a single DB backend #4486

Closed

Description

@alesforz

Partially addresses #1039.

Context

The work in this issue will make CometBFT use only pebbleDB as database, thus deprecating cometbft-db.
As CometBFT will use the same DB interface that cometbft-db uses, users can provide their own implementation of the interface that uses a different database under the hood. They will, therefore, have to change the config.DefaultDBProvider function to return their implementation instead of our default.

However, we will support and maintain only the pebbleDB implementation of the DB interface that CometBFT will use.

ToDo

Activity

  1. self-assigned this
    on Nov 13, 2024
  2. added
    P:storage-optimization
    P:tech-debt
    on Nov 13, 2024
  3. moved this from Todo to In Progress in CometBFTon Nov 13, 2024
  4. added
    dependencies
    and removed
    P:storage-optimization
    on Nov 19, 2024
  5. andynog commented on Nov 19, 2024

    @andynog
    Contributor

    Just a quick comment on the work related to this issue. I believe it's important to design abstractions that allow flexibility for users to choose their own database. This means we should avoid implementations that force the exclusive use of PebbleDB. Instead, we should support a structure where users can integrate their preferred database by implementing a custom provider.

    The primary purpose of using a simple database like PebbleDB is to make testing and development straightforward. However, this simplicity should not restrict users from switching to another database if PebbleDB does not meet their specific needs. They should be able to develop and integrate their own database solution seamlessly.

  6. andynog commented on Nov 20, 2024

    @andynog
    Contributor

    We should also at a task to replace the BadgerDB with PebbleDB in the tutorial

  7. faddat commented on Nov 27, 2024

    @faddat
    Contributor

    The primary purpose of using a simple database like PebbleDB is to make testing and development straightforward. However, this simplicity should not restrict users from switching to another database if PebbleDB does not meet their specific needs.

    Sounds very good

    They should be able to develop and integrate their own database solution seamlessly.

    ....using examples from earlier implementations like goleveldb

  8. alesforz commented on Nov 28, 2024

    @alesforz
    CollaboratorAuthor

    We should also at a task to replace the BadgerDB with PebbleDB in the tutorial

    I think we will do this when doing the "Documentation updated" task of #1039 🙂

  9. added
    tracking
    on Dec 3, 2024
  10. added a commit that references this issue on Feb 10, 2025
    dceff8b
  11. moved this from In Progress to Done in CometBFTon Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P:tech-debtconfigdependenciesstoragetracking

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions