Mashup Styles Server-Side Mashups Speaker 指導教授:陳志達

advertisement

Mashup Styles

Server-Side Mashups

Speaker :房欣漢

指導教授:陳志達

Contents

• What ’ s a Mashup?

• What ’ s in a Name?

• Mashup styles

• A Brief Tour of Mashups in the Pet Store

Application

• Reasons for Using the Proxy Style

• Design Considerations in Server-Side

Mashups

• 結論

What’s a Mashup?

• The services that generate the two types of content are in different sites.

This merging of services and content from multiple web sites in an integrated, coherent way is called a mashup .

What’s in a Name?

• If a web site uses data or functionality from another web site and combines it in an application, it's a mashup .

• If the application simply links to another site, for instance, through an HTML href link, it is not a mashup .

• There is some fuzziness in what constitutes a mashup and probably some degree of subjectivity too.

Mashup Styles

• The two primary mashup styles are server-side mashups and client-side mashups.

Mashup Styles (Server-side)

• Integrate services and content on the server.

• Acts as a proxy between a web application on the client, and the other web site that takes part in the mashup.

• All the requests from the client go to the server, which acts as a proxy to make calls to the other web site.

Mashup Styles (Server-side)

Mashup Styles (Client-side)

• Integrate services and content on the client.

• The client might make requests directly to the other web site.

Mashup Styles (Client-side)

A Brief Tour of Mashups in the Pet Store Application

Reasons for Using the Proxy Style

• A significant reason for using the proxy style is to overcome the constraints of the browser security sandbox and make XMLHttpRequests across domains.

Design Considerations in

Server-Side Mashups

• Security

• Ways to call the service

• The format of the response from the service

• Caching of results

• The need to modify the response

• Ways to handle exceptions and errors

結論

• 伺服器端 Mashup 對使用者負擔較少,不用受

限於用戶設備是否不完善,伺服器身為代理的

角色能夠替使用者呼叫其他服務並且合併,但

前提是伺服器是否做好了安全的防範。

• Mashup 應用範圍非常的廣,可以利用 API 將

網路上一些服務的內容,放置在同一個網頁中,

作為一個合併的效果, ex : google map 、 yahoo 天氣、 youtube … 等等。

Download