Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Refactor rotation policy pattern #237

@u-ways

Description

@u-ways

The policy pattern is a behavioural software design pattern that enables selecting an algorithm at runtime. Instead of implementing a single algorithm directly, the code receives run-time instructions as to which in a family of algorithms to use.

We follow the policy pattern for selecting our rotation strategies on runtime. However, SMR does not follow this pattern and the rotation context itself could use some improvements to follow the standard approach.

See: https://refactoring.guru/design-patterns/strategy

This ticket is for improving our policy pattern and refactoring our SMR logic to conform to our policy pattern. This in turn will get rid of our extra endpoint tribes/id:smr as we will be able to invoke SMR using the tribes/id:rotate endpoint.


Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions