SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
BASE
ECOS
kvstore

       • key-value
       •
       •                  kv

       •
       •
Base
key-value
                    Key            Value

      session    session_id       $_SESSION

                                        (php   )



       service   service      service

       setting

Base - kvstore
Tokyo-Tryant (tt)
          Berkeley DB (bdb, dba)
          Taobao Tair -- FDB
          MemcacheDB
          Cassandra


Base - kvstore
• /data/service/
         • /data/sessions/
         • /data/setting/
         • /data/system/
         • /data/tbdefine/
         • /data/cache/template/
         • /data/cache/theme/
Base - kvstore
ecos

     •              : sdb_base_kvstore

     •
         • cmd kvstorerecovery

Base - kvstore
key-value
        Base
kvcache


       •   kvstore,

       •              ,




Base
secache

         Taobao Tair -- MDB

         Memcache




Base - kvcache
•   ,

•
A                    table_1, table_2
                     D
           B

                     E   table_3

                 C       table_4



Base - kvcache
:

           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
:

                        cache-block

          table_1   A   B       D

          table_2   A   B       D

          table_3   A   B       E

          table_4   A   C


Base - kvcache
:
   B



                           2010-06-14
                 table_1
                             14:59
                           2010-06-14
                 table_2
                             14:59
                           2010-06-14
                 table_3
                             14:59
Base - kvcache
key

•                 ,

    •   ?

    •       ?

    •       ?
URL
      Base
URL
/part1/part2/part3/part4        Mapper

        part2/part3/part4        Router

                            Controller   part2
                             Action      part3
                             Params      part4
Base
•
•
•
•
•
•   http

•
•
•   http   •
•          •   N
           •
           •      http
           •   http
•
•   N
•
•      http   •
•   http      •   N
              •
              •      http
              •   http      ...
•
•   N
•
•      http         ...
•   http      ...
BASE
App
Model
 Base
Model
insert         $rowData
delete         $filter
update         $rowData, $filter
getlist        $cols,$filter, $offset, $limit...
dump           $filter
save           $sdfArray
Model

•       model

•         ,        model

• App model         app.xml

• model
filter

•   where

•              ,    id

•      ,                 id
<{t}>   <{/t}>
base_math

!"#$#
   %&$'()*+,-()()./01./2-(3(0.(-4(
      55(%&$'%6(27
"8
base_pget
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>
base_xml
       XSD
XML Schemas Definition
  •    xml

  •
  •      ,    XML
             XSD
base_xml
           XSD
base_xml::
   array2xml(array,xml,xsd)
   xml2array(xml,array,xsd)
app/ * /docs/ *.t2t

                   app_id

http://abc.com/app-doc/base/rpc-proto.t2t

                             t2t
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

Weitere ähnliche Inhalte

Was ist angesagt?

Ethiopian multiplication in Perl6
Ethiopian multiplication in Perl6Ethiopian multiplication in Perl6
Ethiopian multiplication in Perl6Workhorse Computing
 
Smolder @Silex
Smolder @SilexSmolder @Silex
Smolder @SilexJeen Lee
 
Hadoop 20111117
Hadoop 20111117Hadoop 20111117
Hadoop 20111117exsuns
 
A jar-nORM-ous Task
A jar-nORM-ous TaskA jar-nORM-ous Task
A jar-nORM-ous TaskErin Dees
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Manish Chopra
 
Agente Inteligente Ontologia y Tripletas
Agente Inteligente Ontologia y TripletasAgente Inteligente Ontologia y Tripletas
Agente Inteligente Ontologia y Tripletasluisfe
 
Ansible, voyage au centre de l'automatisation
Ansible, voyage au centre de l'automatisationAnsible, voyage au centre de l'automatisation
Ansible, voyage au centre de l'automatisationMickael Hubert
 
Perl Memory Use - LPW2013
Perl Memory Use - LPW2013Perl Memory Use - LPW2013
Perl Memory Use - LPW2013Tim Bunce
 
Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Monowar Mukul
 
More tips n tricks
More tips n tricksMore tips n tricks
More tips n tricksbcoca
 
Read, store and create xml and json
Read, store and create xml and jsonRead, store and create xml and json
Read, store and create xml and jsonKim Berg Hansen
 
TP2 Big Data HBase
TP2 Big Data HBaseTP2 Big Data HBase
TP2 Big Data HBaseAmal Abid
 
Web Apps in Perl - HTTP 101
Web Apps in Perl - HTTP 101Web Apps in Perl - HTTP 101
Web Apps in Perl - HTTP 101hendrikvb
 
Codeigniter4の比較と検証
Codeigniter4の比較と検証Codeigniter4の比較と検証
Codeigniter4の比較と検証ME iBotch
 
Codeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept ImplementationCodeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept ImplementationAbdul Malik Ikhsan
 

Was ist angesagt? (20)

Ethiopian multiplication in Perl6
Ethiopian multiplication in Perl6Ethiopian multiplication in Perl6
Ethiopian multiplication in Perl6
 
Smolder @Silex
Smolder @SilexSmolder @Silex
Smolder @Silex
 
Hadoop 20111117
Hadoop 20111117Hadoop 20111117
Hadoop 20111117
 
A jar-nORM-ous Task
A jar-nORM-ous TaskA jar-nORM-ous Task
A jar-nORM-ous Task
 
TRunner
TRunnerTRunner
TRunner
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6
 
High Performance tDiary
High Performance tDiaryHigh Performance tDiary
High Performance tDiary
 
Perl Programming - 04 Programming Database
Perl Programming - 04 Programming DatabasePerl Programming - 04 Programming Database
Perl Programming - 04 Programming Database
 
Agente Inteligente Ontologia y Tripletas
Agente Inteligente Ontologia y TripletasAgente Inteligente Ontologia y Tripletas
Agente Inteligente Ontologia y Tripletas
 
Hands on Hadoop
Hands on HadoopHands on Hadoop
Hands on Hadoop
 
Ansible, voyage au centre de l'automatisation
Ansible, voyage au centre de l'automatisationAnsible, voyage au centre de l'automatisation
Ansible, voyage au centre de l'automatisation
 
Perl Memory Use - LPW2013
Perl Memory Use - LPW2013Perl Memory Use - LPW2013
Perl Memory Use - LPW2013
 
Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine
 
More tips n tricks
More tips n tricksMore tips n tricks
More tips n tricks
 
Read, store and create xml and json
Read, store and create xml and jsonRead, store and create xml and json
Read, store and create xml and json
 
TP2 Big Data HBase
TP2 Big Data HBaseTP2 Big Data HBase
TP2 Big Data HBase
 
Augeas @RMLL 2012
Augeas @RMLL 2012Augeas @RMLL 2012
Augeas @RMLL 2012
 
Web Apps in Perl - HTTP 101
Web Apps in Perl - HTTP 101Web Apps in Perl - HTTP 101
Web Apps in Perl - HTTP 101
 
Codeigniter4の比較と検証
Codeigniter4の比較と検証Codeigniter4の比較と検証
Codeigniter4の比較と検証
 
Codeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept ImplementationCodeigniter : Two Step View - Concept Implementation
Codeigniter : Two Step View - Concept Implementation
 

Andere mochten auch

Transformative Learning
Transformative LearningTransformative Learning
Transformative Learningvillagegal
 
Build your own wind turbine
Build your own wind turbineBuild your own wind turbine
Build your own wind turbinepason de mexico
 
商派电商基础设施产品
商派电商基础设施产品商派电商基础设施产品
商派电商基础设施产品wanglei999
 
商派信息安全解决方案
商派信息安全解决方案商派信息安全解决方案
商派信息安全解决方案wanglei999
 
First Year Teachers' Experiences Directing the Work of Educational Assistants...
First Year Teachers' Experiences Directing the Work of Educational Assistants...First Year Teachers' Experiences Directing the Work of Educational Assistants...
First Year Teachers' Experiences Directing the Work of Educational Assistants...villagegal
 
Cummunity HUB - Our Beliefs
Cummunity HUB - Our BeliefsCummunity HUB - Our Beliefs
Cummunity HUB - Our BeliefsAtiba Phillips
 
Cummunity HUB - Youth Content Creation
Cummunity HUB - Youth Content CreationCummunity HUB - Youth Content Creation
Cummunity HUB - Youth Content CreationAtiba Phillips
 

Andere mochten auch (16)

Congress 2010
Congress 2010Congress 2010
Congress 2010
 
Bacterial plasmids
Bacterial plasmidsBacterial plasmids
Bacterial plasmids
 
Transformative Learning
Transformative LearningTransformative Learning
Transformative Learning
 
1756 pm008 -en-p
1756 pm008 -en-p1756 pm008 -en-p
1756 pm008 -en-p
 
Build your own wind turbine
Build your own wind turbineBuild your own wind turbine
Build your own wind turbine
 
商派电商基础设施产品
商派电商基础设施产品商派电商基础设施产品
商派电商基础设施产品
 
什么是ECOS
什么是ECOS什么是ECOS
什么是ECOS
 
about me
about meabout me
about me
 
Aml incidencia
Aml incidenciaAml incidencia
Aml incidencia
 
商派信息安全解决方案
商派信息安全解决方案商派信息安全解决方案
商派信息安全解决方案
 
First Year Teachers' Experiences Directing the Work of Educational Assistants...
First Year Teachers' Experiences Directing the Work of Educational Assistants...First Year Teachers' Experiences Directing the Work of Educational Assistants...
First Year Teachers' Experiences Directing the Work of Educational Assistants...
 
Cummunity HUB - Our Beliefs
Cummunity HUB - Our BeliefsCummunity HUB - Our Beliefs
Cummunity HUB - Our Beliefs
 
Cummunity HUB - Youth Content Creation
Cummunity HUB - Youth Content CreationCummunity HUB - Youth Content Creation
Cummunity HUB - Youth Content Creation
 
实战Ecos
实战Ecos实战Ecos
实战Ecos
 
Ecos rpc
Ecos rpcEcos rpc
Ecos rpc
 
Bloomfilter
BloomfilterBloomfilter
Bloomfilter
 

Ähnlich wie Ecos基础应用介绍

IVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & Mobile
IVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & MobileIVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & Mobile
IVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & MobileAmazon Web Services Japan
 
OSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle ManagerOSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle ManagerSkills Matter
 
Cache on Delivery
Cache on DeliveryCache on Delivery
Cache on DeliverySensePost
 
WordPress Café: Using WordPress as a Framework
WordPress Café: Using WordPress as a FrameworkWordPress Café: Using WordPress as a Framework
WordPress Café: Using WordPress as a FrameworkExove
 
The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012Lucas Jellema
 
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...Alex Gorbachev
 
Modeling Tricks My Relational Database Never Taught Me
Modeling Tricks My Relational Database Never Taught MeModeling Tricks My Relational Database Never Taught Me
Modeling Tricks My Relational Database Never Taught MeDavid Boike
 
Rails 3 (beta) Roundup
Rails 3 (beta) RoundupRails 3 (beta) Roundup
Rails 3 (beta) RoundupWayne Carter
 
Cより速いRubyプログラム
Cより速いRubyプログラムCより速いRubyプログラム
Cより速いRubyプログラムkwatch
 
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たちDBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たちRyo Miyake
 
6 tips for improving ruby performance
6 tips for improving ruby performance6 tips for improving ruby performance
6 tips for improving ruby performanceEngine Yard
 
Adding Riak to your NoSQL Bag of Tricks
Adding Riak to your NoSQL Bag of TricksAdding Riak to your NoSQL Bag of Tricks
Adding Riak to your NoSQL Bag of Trickssiculars
 
Structured Streaming with Apache Spark
Structured Streaming with Apache SparkStructured Streaming with Apache Spark
Structured Streaming with Apache SparkDataya Nolja
 
DjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling DisqusDjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling Disquszeeg
 

Ähnlich wie Ecos基础应用介绍 (20)

IVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & Mobile
IVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & MobileIVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & Mobile
IVS CTO Night And Day 2018 Winter - [re:Cap] Serverless & Mobile
 
OSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle ManagerOSGI workshop - Become A Certified Bundle Manager
OSGI workshop - Become A Certified Bundle Manager
 
Cache on Delivery
Cache on DeliveryCache on Delivery
Cache on Delivery
 
CakePHP
CakePHPCakePHP
CakePHP
 
WordPress Café: Using WordPress as a Framework
WordPress Café: Using WordPress as a FrameworkWordPress Café: Using WordPress as a Framework
WordPress Café: Using WordPress as a Framework
 
The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012
 
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
 
Percona toolkit
Percona toolkitPercona toolkit
Percona toolkit
 
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
 
VS Debugging Tricks
VS Debugging TricksVS Debugging Tricks
VS Debugging Tricks
 
Pecl Picks
Pecl PicksPecl Picks
Pecl Picks
 
Modeling Tricks My Relational Database Never Taught Me
Modeling Tricks My Relational Database Never Taught MeModeling Tricks My Relational Database Never Taught Me
Modeling Tricks My Relational Database Never Taught Me
 
Top ten-list
Top ten-listTop ten-list
Top ten-list
 
Rails 3 (beta) Roundup
Rails 3 (beta) RoundupRails 3 (beta) Roundup
Rails 3 (beta) Roundup
 
Cより速いRubyプログラム
Cより速いRubyプログラムCより速いRubyプログラム
Cより速いRubyプログラム
 
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たちDBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たち
 
6 tips for improving ruby performance
6 tips for improving ruby performance6 tips for improving ruby performance
6 tips for improving ruby performance
 
Adding Riak to your NoSQL Bag of Tricks
Adding Riak to your NoSQL Bag of TricksAdding Riak to your NoSQL Bag of Tricks
Adding Riak to your NoSQL Bag of Tricks
 
Structured Streaming with Apache Spark
Structured Streaming with Apache SparkStructured Streaming with Apache Spark
Structured Streaming with Apache Spark
 
DjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling DisqusDjangoCon 2010 Scaling Disqus
DjangoCon 2010 Scaling Disqus
 

Ecos基础应用介绍

  • 2. kvstore • key-value • • kv • • Base
  • 3. key-value Key Value session session_id $_SESSION (php ) service service service setting Base - kvstore
  • 4. Tokyo-Tryant (tt) Berkeley DB (bdb, dba) Taobao Tair -- FDB MemcacheDB Cassandra Base - kvstore
  • 5. • /data/service/ • /data/sessions/ • /data/setting/ • /data/system/ • /data/tbdefine/ • /data/cache/template/ • /data/cache/theme/ Base - kvstore
  • 6. ecos • : sdb_base_kvstore • • cmd kvstorerecovery Base - kvstore
  • 7. key-value Base
  • 8. kvcache • kvstore, • , Base
  • 9. secache Taobao Tair -- MDB Memcache Base - kvcache
  • 10. , •
  • 11. A table_1, table_2 D B E table_3 C table_4 Base - kvcache
  • 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. : cache-block table_1 A B D table_2 A B D table_3 A B E table_4 A C Base - kvcache
  • 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. key • , • ? • ? • ?
  • 16. URL Base
  • 17. URL /part1/part2/part3/part4 Mapper part2/part3/part4 Router Controller part2 Action part3 Params part4
  • 18. Base
  • 20. • • http •
  • 21. • • http • • • N • • http • http
  • 22. • • N • • http • • http • N • • http • http ...
  • 23. • • N • • http ... • http ...
  • 26. Model insert $rowData delete $filter update $rowData, $filter getlist $cols,$filter, $offset, $limit... dump $filter save $sdfArray
  • 27. Model • model • , model • App model app.xml • model
  • 28. filter • where • , id • , id
  • 29. <{t}> <{/t}>
  • 30. base_math !"#$# %&$'()*+,-()()./01./2-(3(0.(-4( 55(%&$'%6(27 "8
  • 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. base_xml XSD XML Schemas Definition • xml • • , XML XSD
  • 34. base_xml XSD base_xml:: array2xml(array,xml,xsd) xml2array(xml,array,xsd)
  • 35. app/ * /docs/ *.t2t app_id http://abc.com/app-doc/base/rpc-proto.t2t t2t
  • 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