User Tools

Site Tools


f1x:archtecture:attraction-proximity

This is an old revision of the document!


Attraction/proximity

To discover objects of same kind with “attraction” mechanism is used. It is based on objects providing method “attractor” that results in multidimension KV list defining “attractor hash key” (AHK). It is used by Router to lookup Matcher node using DHT-like scheme.

Matcher uses method “proximity” on Attractor and other matching object to find proximity score. This and amount of “matching” objects define amount of references to objects to be sent to Attration initiator.

Sample flow for case “Need to find babysitter tonight”:

  1. User creates Object of kind “Person” with mandatory Attractor fields: gender, geolocation. The Proximity fields “min age”, “max age”, availability hours and minimum payment per hour might also be specified.
  2. The Object is exported and hits Router, that calculates hash Person-Gender-Geo and forwards it to Matcher node using DHT lookup.
  3. Matcher node matches Attractor and matching objects, uses “proximity” method to create list of candidates, ordered by proximity score, to be sent back to User (via his Router node).
  4. Once on User's node, method “MatchFound” is called with array of candidate objects. It might then create results popup notification or show results.
f1x/archtecture/attraction-proximity.1738738951.txt.gz · Last modified: 2025/02/05 07:02 by arie

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki