Skip to content

Create awareness around token entries disk usage on PostgreSQL in the documentation when using the JPA implementation  #115

Description

@hatzlj

There has been a broader discussion on the use of PostgreSQL with the JPA Token store in the axon google group some time ago regarding binary storage of the tokens (see https://groups.google.com/forum/#!msg/axonframework/HhzQMbWfHTg/G04WbiixBAAJ)

We and apparently other users (e.g. @rcusters) have stumbled across this issue, but only after running our applications for some time (in production). I assume this is because the effects of the growing large-object table only show up when running an application for quite some time.

Altough it does not seem to be a problem that needs to be solved in the Axon framework, it could still be helpful for new users to point out the implications of using the JPATokenStore with hibernate and postgres in the standard configuration to avoid migrations and maintenance later and already implement a strategy during development.

I suggest to add an explanation (condensed from the discussion in the google group) and some hints/strategies to overcome (remap to bytea, use vacuumlo daemon) in the Axon reference-guide under the production considerations section (see https://github.com/AxonIQ/reference-guide/tree/master/operations-guide/production-considerations).

referencing: AxonIQ/AxonFramework#1351

Activity

  1. smcvb commented on Feb 20, 2020

    @smcvb
    Collaborator

    Another topic which should be shared when this information is added to the appendices, is the fact you can omit the use of TOAST/OID entirely from PostgreSQL. A sample on how to reach this can be found here.

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