Skip to content

CircuitSwitch might cause too many Deadlock #10

@makicamel

Description

@makicamel

CircuitSwitch.run and CircuitSwitch.report increment run_count and report_count when they are called.
If many method calls pour into, CircuitSwitch tries writing to the single record frequently.
This might cause too many Deadlock and increase cpu load.

I have 2 plans.

  1. Add apis not to increment count.
  2. Rewrite gem, modify data store to Redis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions