a web service for flexible integration of mobile applications with social networks

21
1 A Web Service for Flexible Integration of Mobile Applications with Social Networks Victor Pantoja and Markus Endler PUC-Rio, Brazil

Upload: victor-pantoja

Post on 05-Aug-2015

55 views

Category:

Software


2 download

TRANSCRIPT

1

A Web Service for Flexible Integration of

Mobile Applications with Social Networks

Victor Pantoja and Markus Endler

PUC-Rio, Brazil

2

Technical advances of mobile technologies and Web have promoted new forms of social interactions

Motivation»

Mobile Social Software (MoSoSo) made social connectivity even more explicit:

»

· Extends interpersonal to network interactions through the many-to-many communication paradigm of online social networks.

Virtual and physical worlds are rapidly growing together:

»· Online social networks are increasingly used for interaction

2

3

MotivationCurrent MoSoSo has usually no support for uniform and extensible interaction with online social networks, other web services and mobile middleware systems for context processing.

»

Inefficient transfer of information:»· Amount of data transferred· Higher consumption of wireless bandwidth and battery· Example: Google Maps API

3

4

ss

Motivation - Scenario

4

Academic Car Sharing Network

Prof. Paul

UniRio Campus

Student Anna

5

Motivation - Scenario

5

UniRio CampusAcademic Car Sharing Network

Prof. PaulStudent Anna

Pervasive Context:Location, speed, userID

Pervasive Context:Location, userID

Social Context:Anna and Paul have common acquaintaces

6

Mobile Social Gateway

Provides a generic interface for optimized information transfer between mobile devices and social networks or other web services

»

» Allows third-party Web services to subscribe for a specific context information

» Performance and scalability were major concerns

6

7

ArchitecturePrototypePerformanceConclusion

Agenda1234

7

8

Architecture of MoSoGw

MoSoGw is responsible for filtering, caching and distributing context data from the mobile device to social networks and vice-versa

»

The primary goals of MoSoGw are:»· Minimize the amount of data transferred· Allow for some kind of processing of the pervasive and social context data· Provide a uniform interface to the social networks

8

9

Architecture of MoSoGw

SN: Social NetworkWS: Web ServiceCMS: Context Management System

9

10

Architecture of MoSoGw

nginx HTTP server:»· Event-driven architecture· Asynchronous non-blocking I/O· disk cache

Tornado:»· lean Python framework· high performance· non-blocking I/O

Each component was chosen in order to achieve high performance:

10

memcached: memory cache

»

11

APIs

11

Android Java API»· better suited to mobile app developers· details are hidden behind the Java class abstraction

Allows client applications and third-party web services to be built by using any platform/environment

»

REST API:»· applications must know MoSoGw interfaces and URLs

12

PrototypeMobile Social Share:»

· Allows mobile users to share context information about their position· Estimates traffic conditions based on users’ velocities· Twitter, Facebook and 3rd Party Apps

12

13

Prototype

13

14

Prototype

14

15

Performance Evaluation

Ubuntu 10.04 with 512MB RAM»

»Simple MoSoGw box:· 1 nginx instance· 1 Tornado instance· 1 MySQL ServerAll the three cache layers described were implemented

»

Scenario:»1 - Create a new user2 - Log in with a user3 - Send an invitation to another user4 - Send context information to Twitter

15

16

Performance Evaluation

16

17

Performance Evaluation

Peak of 4.45s but it is quite reasonable to assume that users can wait 4.45s to get a context information update1

7

Average: 0.177s

18

ConclusionMoSoGw facilitates integration with social networks

»

It enables third-party web services to process or match users’ context information and social network data

»

Initial usage and performance tests are non-conclusive

»

MoSoGw has some promising architectural features.

»

18

· makes it transparent for developers

19

Future WorkParallel/distributed deployment MoSoGw and precisely assess its scalability

19

20

Future WorkBetter exploring integration with third party apps

20