Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

sync index to file system changes #1

Open
grahamcrowell opened this issue Nov 15, 2017 · 0 comments
Open

sync index to file system changes #1

grahamcrowell opened this issue Nov 15, 2017 · 0 comments

Comments

@grahamcrowell
Copy link
Owner

grahamcrowell commented Nov 15, 2017

Sync index to file system

1 way sync: make destination same as source

  1. Get source and destination state
  2. Diff state to get tasks
  3. Execute tasks
  4. Delete
  5. Add
  6. Commit

reusable sync frame work

Create a abstract framework that can be reused for other 1 way sync use cases such as search for home media server

  • movie

implementation

Use akka actor to distribute sync tasks to sub actors (task type handlers) based on type of task.
Each task type has an associated akka stream. Task type handler actors append sync tasks to the source of its associated stream.
See Akka Stream queued source

task types

  • read: 1 element input, 0 to many elements output
  • write: 0 to many elements input, 0 elements output
  • delete 0 to many elements input, 0 elements output
  • 1 way sync 2 elements input, 0 elements output

also see

Related issues

@grahamcrowell grahamcrowell added this to the minimum viable product milestone Nov 15, 2017
@grahamcrowell grahamcrowell removed this from the minimum viable product milestone Dec 23, 2017
grahamcrowell added a commit that referenced this issue Jan 2, 2018
… to a lucene index (the destination).

See #1.
Also see #13, #14, #19.
grahamcrowell added a commit that referenced this issue Jan 5, 2018
grahamcrowell added a commit that referenced this issue Jan 5, 2018
grahamcrowell added a commit that referenced this issue Jan 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant