0
BEAR framework architecture
       RESTful MVC
3 components

• Page (Controller)
• Resource (Model)
• View
Resource (Model)
Page (Controller)               DB                    File            XML          Page
      View
     C...
Internal API on ROA
              API
DB                      File        XML       Page



                                                   Resource Object
 ...
•   Page Resource


•   Resource
        body                 Headers
                           code
                    ...
No View, No Controller
DB                        File        XML         Page



                               Resource



      read User?id=5
...
•   View Page


•
•
REST
Client - Server (CS)


      Resource

               Server

                        •
           Client
        Page
Client - Stateless - Server (CSS)


                 Resource


read User?id=5           •             1
                 ...
Client - Cache - Stateless - Server (C$SS)


                 Resource


                           •


                Re...
Uniform - Client - Cache - Stateless - Server (UC$SS)



                       Resource
          onCreate   onRead   onU...
Uniform - Layered - Client - Cache - Stateless - Server (ULC$SS)


             Profile                             Followe...
Caches
DB                  File     XML      Page



                                                Resource Object
        Reso...
•
•
•          MVC html
    view
Upcoming SlideShare
Loading in...5
×

BEAR Architecture

1,595

Published on

BEAR Web framework RESTful MVC Architecture.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,595
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "BEAR Architecture"

  1. 1. BEAR framework architecture RESTful MVC
  2. 2. 3 components • Page (Controller) • Resource (Model) • View
  3. 3. Resource (Model) Page (Controller) DB File XML Page View Client Resource RO read User?id=5 Private CRUD Resource Access Code Header Page Body View GET /user?id=5 RO Public HTTP Access HTML Bot PC JS Socket CLI REST JSON Mobile Game iPhone XML
  4. 4. Internal API on ROA API
  5. 5. DB File XML Page Resource Object onCreate onRead onUpdate onDelete read User?id=5 Ro Internal Access with Internal API +Option -int Code mini web read User/Profile?user_id=5 read User/Friend?user_id=5 cache -array Headers resource template -array Body update Footprint/?user_id=5 pager post once exactly Page Controller ROA GET /user?id=5 External Access Bot View JS
  6. 6. • Page Resource • Resource body Headers code HTTP • or CRUD +URI • PHP
  7. 7. No View, No Controller
  8. 8. DB File XML Page Resource read User?id=5 Ro ROA -int Code API -array Headers -array Body CLI / HTTP / Socket Interface Shell Socket REST Java / Perl / Ruby / Python
  9. 9. • View Page • •
  10. 10. REST
  11. 11. Client - Server (CS) Resource Server • Client Page
  12. 12. Client - Stateless - Server (CSS) Resource read User?id=5 • 1 • set id=5; • get User; • Page
  13. 13. Client - Cache - Stateless - Server (C$SS) Resource • Resource Cache Page
  14. 14. Uniform - Client - Cache - Stateless - Server (UC$SS) Resource onCreate onRead onUpdate onDelete read User?id=5 • getUserName(5) Resource Cache Page
  15. 15. Uniform - Layered - Client - Cache - Stateless - Server (ULC$SS) Profile Follower • Cache Cache User • • • Cache Page
  16. 16. Caches
  17. 17. DB File XML Page Resource Object Resource Cache read User?id=5 Ro with resource template -int Code read User/Profile?user_id=5 read User/Friend?user_id=5 ‘template’ -array Headers update Footprint/?user_id=5 =>user.tpl -string Body Cached resource HTML Init Cache Page Controller Page Cache GET /user?id=5 External Access Bot JS
  18. 18. • • • MVC html view
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×