/
notes
89 lines (80 loc) · 1.93 KB
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
;; -*- mode: outline; outline-regexp: " *[-\+]"; indent-tabs-mode: nil -*-
^c^d hide subtree
^c^s show subtree
- todo
- add log entries to actors
- features
- Persister Actor (write to disk and ready on start)
- 0.5.0
- HttpServer Actor
- 0.6.0
- .graffle OmniGraffle input
- 0.7.0
- .svg vector graphics input
- .vdx Visio input
- 0.8.0
- call out using pipe and fork
- 0.9.0
- rubygems graphs example
- 1.0.0
- Persister
- impl
- test for config
- make sure dir is created
-
- ops to handle
- insert (or create)
- read (or get)
- update
- delete (or remove)
- query
- clear/dump
- options
- dir to write to
- default is db/full_name.gsub(':', '/')
- key - path to key for the box
- cache flag - future feature
- option for write to one file or separate
- first separate files
- single file - future feature
- general feature, error can follow error link
- store using oj object mode
- option to send results to different places
- specify link dest in request
- box
- get { dest: xxx, key: xxx }
- insert { key: optional, data: xxx }
- update { key: optional, data: xxx }
- delete { key: optional }
- query { dest: xxx, expr: xxx }
- expr is a block or proc
- string expr - future feature
- TBDs
- example
- rubygems graphs
- timer
- fetch
- persist
- http
- GET http://rubygems.org/api/v1/owners/ohler/gems.json
- GET http://rubygems.org/api/v1/gems/oj.json
- fetch data
- fetch page template
- form page
- respond
- data store
- handles CRUD and simple list
- tasks
- receive request and identify action
- send to correct task (path)
- insert
- json encoded object
- decode header
- save
- reply
- simple (covers all features)
- receive json request from simple command line input generator
- send to 2 tasks, get time and get count
- join back
- queue to 2+ sleepers (random sleep)
- reply