Skip to content

#10 Issue 10: [Performance] Redis Cache for Meter State #10

@elizabetheonoja-art

Description

@elizabetheonoja-art

Don't query Postgres for every single MQTT heartbeat. Cache device state in Redis for speed.

Acceptance Criteria:

[ ] Key: meter:{id}:state.

[ ] Value: { isActive: true, balance: 100 }.

[ ] TTL: 60 seconds.

Priority: Medium
Labels: performance, caching

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions