hazelcast / hazelcast/hz-docs

Note on Backup Entry Processor usage

Offen
#653 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
11
Forks
112
Ø Merge
20 Std. 29 Min.
Gemergte PRs (30 T.)
19

Beschreibung

EntryProcessor interface returns "this" instance as the default backup entry processor.
So, all the business logic of the primary entry processor ("this") is carried to the backup and causes unnecessary execution.

We can drop a note to the documentation and tell the users that they can just carry the computed value and update the backup entry. This way, they'll avoid running unnecessary business logic to reach to the same computed value.

Another important note on Offloadable Entry Processors;

Even though Offloadable EPs run on its own executor, its backup EPs run on partition threads.
We can mention this design too, which adds to the importance of the first point.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Locate the documentation sections covering EntryProcessor and Offloadable Entry Processors. Read the existing guidance, then add notes about the default backup processor behavior and that offloaded backup processors run on partition threads. Done means users can identify when to carry only the computed value and understand the backup execution context.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.