Your SlideShare is downloading. ×
BEAR Architecture
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

BEAR Architecture

1,547

Published on

BEAR Web framework RESTful MVC Architecture.

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,547
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

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

×