BEAR Architecture
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

BEAR Architecture

  • 2,068 views
Uploaded on

BEAR Web framework RESTful MVC Architecture.

BEAR Web framework RESTful MVC Architecture.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,068
On Slideshare
2,060
From Embeds
8
Number of Embeds
4

Actions

Shares
Downloads
7
Comments
0
Likes
1

Embeds 8

http://www.linkedin.com 4
http://beardemo.kumasystem.com 2
http://bear.demo 1
http://www.slideshare.net 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. BEAR framework architecture RESTful MVC
  • 2. 3 components • Page (Controller) • Resource (Model) • View
  • 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. Internal API on ROA API
  • 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. • Page Resource • Resource body Headers code HTTP • or CRUD +URI • PHP
  • 7. No View, No Controller
  • 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. • View Page • •
  • 10. REST
  • 11. Client - Server (CS) Resource Server • Client Page
  • 12. Client - Stateless - Server (CSS) Resource read User?id=5 • 1 • set id=5; • get User; • Page
  • 13. Client - Cache - Stateless - Server (C$SS) Resource • Resource Cache Page
  • 14. Uniform - Client - Cache - Stateless - Server (UC$SS) Resource onCreate onRead onUpdate onDelete read User?id=5 • getUserName(5) Resource Cache Page
  • 15. Uniform - Layered - Client - Cache - Stateless - Server (ULC$SS) Profile Follower • Cache Cache User • • • Cache Page
  • 16. Caches
  • 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. • • • MVC html view