Ecos基础应用介绍

677 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
677
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ecos基础应用介绍

  1. 1. BASE ECOS
  2. 2. kvstore • key-value • • kv • • Base
  3. 3. key-value Key Value session session_id $_SESSION (php ) service service service setting Base - kvstore
  4. 4. Tokyo-Tryant (tt) Berkeley DB (bdb, dba) Taobao Tair -- FDB MemcacheDB Cassandra Base - kvstore
  5. 5. • /data/service/ • /data/sessions/ • /data/setting/ • /data/system/ • /data/tbdefine/ • /data/cache/template/ • /data/cache/theme/ Base - kvstore
  6. 6. ecos • : sdb_base_kvstore • • cmd kvstorerecovery Base - kvstore
  7. 7. key-value Base
  8. 8. kvcache • kvstore, • , Base
  9. 9. secache Taobao Tair -- MDB Memcache Base - kvcache
  10. 10. • , •
  11. 11. A table_1, table_2 D B E table_3 C table_4 Base - kvcache
  12. 12. : A table_1, table_2, table_3,table_4 B table_1, table_2, table_3 C table_4 D table_1, table_2 E table_3 Base - kvcache
  13. 13. : cache-block table_1 A B D table_2 A B D table_3 A B E table_4 A C Base - kvcache
  14. 14. : B 2010-06-14 table_1 14:59 2010-06-14 table_2 14:59 2010-06-14 table_3 14:59 Base - kvcache
  15. 15. key • , • ? • ? • ?
  16. 16. URL Base
  17. 17. URL /part1/part2/part3/part4 Mapper part2/part3/part4 Router Controller part2 Action part3 Params part4
  18. 18. Base
  19. 19. • • • •
  20. 20. • • http •
  21. 21. • • http • • • N • • http • http
  22. 22. • • N • • http • • http • N • • http • http ...
  23. 23. • • N • • http ... • http ...
  24. 24. BASE App
  25. 25. Model Base
  26. 26. Model insert $rowData delete $filter update $rowData, $filter getlist $cols,$filter, $offset, $limit... dump $filter save $sdfArray
  27. 27. Model • model • , model • App model app.xml • model
  28. 28. filter • where • , id • , id
  29. 29. <{t}> <{/t}>
  30. 30. base_math !"#$# %&$'()*+,-()()./01./2-(3(0.(-4( 55(%&$'%6(27 "8
  31. 31. base_pget
  32. 32. base_xml array( <root> ? ‘a’=> ‘123’, <a>123</a> ‘c’=>array( <c> <c e=”888”> ? ‘e’=>‘888’ <e>888</e> ‘f’=>‘999’ <f>999</f> ), </c> ); </root>
  33. 33. base_xml XSD XML Schemas Definition • xml • • , XML XSD
  34. 34. base_xml XSD base_xml:: array2xml(array,xml,xsd) xml2array(xml,array,xsd)
  35. 35. app/ * /docs/ *.t2t app_id http://abc.com/app-doc/base/rpc-proto.t2t t2t
  36. 36. t2t = txt2tag • HTML / XHTML chm • LaTeX pdf <ul> - AAAA • Man page <li>AAAA</li> • Wikipedia / MediaWiki - BBBBB <li>BBBBB</li> • Google Code Wiki <li>CCCC</li> - CCCC • </ul> DokuWiki • PageMaker

×