• About Us
  • Blog
  • Basket
  • Account
  • Sign In
  •  

Blog

Published on Wednesday, January 16, 2013

Is Cloud Mobile Detection Compromising Your Mobile Web Experience?

Device detection allows a website to know what mobile device is currently being used to browse it. This allows developers to specifically tailor a web page to accommodate different device types. There are two technical approaches that can be used to detect mobile devices: On-Premise and Cloud based. This blog explains the advantages and disadvantages of each and provides free source code to enable you to evaluate which solution is right for your organisation.

Comparison Table

Detection Type On-Premise Cloud
Total Detection Time 23ms or less >200ms
Maintenance Automatic (with 51Degrees.mobi) 3rd Party
Cost Free Unlimited Detections Free for 5,000 detections (ScientiaMobile)
Availability 100% (Same as web server) Variable

On-Premise Solution

An On-Premise solution refers to a solution that runs on the local web server. All the required data is held locally and the detection rates can be extremely fast, though some memory and CPU overheads are incurred. Some on-premise solutions will also require the user to manually maintain and update the device data but overall On-Premise device detection offers an affordable, high performance and responsive way of detecting mobile devices for your website.

Cloud Based Solution

The “Cloud” is a term used to describe any service that is computed remotely and passed back over the internet to the local web server. A Cloud device detection solution works by sending data about the requesting device to a remote server. This server then determines the device type and sends the result back over the internet to be used to offer the mobile web user a more enriched experience.

The following diagram explains the process:

The obvious advantage of the Cloud approach lies within the remote computer processing all the calculations. This relieves any overhead on the local web server; however, as detection information is passed across the internet there will always be travel time added to the total detection speed. This added distance will penalise your mobile web users, causing their experience to be far more sluggish. Updating the Cloud service is normally not a problem as a reputable service provider will be responsible for updates. The service provider will of course charge for their service, usually basing charges on the number of detections performed.

If the connection between your web server and cloud solution are slow, then your web site will slow down. If internet connection between your server and the cloud are lost at any point (if the cloud service is unreliable and drops), then you are left without a detection solution which would stop the web server operating correctly.

Comparison Test

To compare these two approaches a simple test was created that reviews the time it takes to detect if a device is mobile and to retrieve a result from the 51Degrees.mobi PHP device detection solution running on both a local On-Premise server and on a cloud. Both solutions ran on the my.PHPcloud.com hosting service, with the cloud installation running on an Amazon high-CPU, extra-large, ec2 Instance named: c1.xlarge.

Below are the following results of the test:

"is mobile" Detection Request Detection Time(ms) Cloud Detection Time(ms) Cloud Total Detection(ms) Cloud Travel Time(ms)
1 16.7 13.6 204.4 190.8
2 41.6 21.9 210 188.1
3 19.6 20.6 243 222.4
4 18 21.3 221.9 200.6
5 20.1 21 202.3 181.3
6 19.1 14.1 200 185.9
7 43.2 14.1 202 187.9
8 18 14.1 201.7 187.6
9 15.3 18.9 220.8 201.9
10 16.5 13.6 194.4 180.8
Average 22.81 17.32 210.05 192.73

As you can see the results show that although both servers managed to detect the devices in very similar times (22.81ms VS 17.32ms), the total detection time is far greater for the cloud. This is solely due to the amount of time that it takes for the data to be transferred across to the cloud and back (Cloud Travel Time). When you compare the overall time for a device to be detected between the two approaches (210.05 VS 22.81), you can easily see that using an on-premise solution is a far speedier option, being able to detect over 9 times faster than the cloud approach. Even if the cloud service took 0ms to calculate the result the overall detection time would be far slower than the on-premise detection.

So, is there a use for the cloud?

With 51Degrees.mobi solution available for PHP, Java, .NET and C supporting the majority of web sites there’s no need to accept slower performance, increased complexity, and risk reduced availability using a cloud service. We also offer a hybrid of providing an on-premise solution that uses the cloud to periodically update the local device data repository. This method gives you the best of both worlds: The performance of an on-premise solution and the automatically updated device data that the cloud can offer.

Comments (0)

Author: Products Team

Categories: Development

Tags: Device Detection, Mobile, Cloud

Chris Brautigam
>

Products Team

Other posts by Products Team
Contact author

Name:
Email:
Subject:
Message:
x

Tags

.NET 2013 2014 4G 51Degrees 5G A.C.Roma A7 ABI Acer Affiliate Marketing Alcatel Amazon AMP Analysis Analytics Android Android 5.0 Lollipop Android Kitkat Android Lollipop Android Media Stick Apache API Apple Apple TV Archos Asha Asian Market ASP.NET Asus Australia Big Data Black Friday Blackberry Blink Browser C C# Case Study CeBIT CES Chrome Cloud CMS combinations Comparison Competition CoolPad COTW Cron CSS3 Data Data Blog Data File Data Model Daydream Denver Design Desire Eye Desktop Detection Device Device Data Device Detection Device Intelligence Device Popularity Device property Device Types Device Use Display DoCoMo Doogee DotNetNuke Download Drupal Email EReader E-Reader Ericsson Evaluation Event Examples EXPLAY Rio Facebook feature Firefox Firefox OS Fly Foundation Framework France Galaxy S3 Galaxy S5 Galaxy Tab A Galaxy Tab A 8.0 Galaxy Tab A 9.7 Germany Global Google Google Daydream GSMA HAProxy Hardware Hisense HTC HTC ONE MAX HTC OS HTML5 HTTP Huawei HUAWEI. UPDATE HUDL Huwaei IBC Icemobile Prime 4.0 IE IFA IIS Image Optimiser Image Optimizer India Infographic Ingeniux Internet usage iOS iOS 7 iOS 8 ipad iPhone iPhone 6 IsEmailBrowser IsWebApp Italy Japan Java Javascript Jolla Kentico Keynote Kindle Kindle Fire Kindle Fire HD Leagoo Lenovo LG Location Log File Analysis LTE Lumia Map Memory Meta Data Mi 4S Micromax Microsoft Miia Style Mobile Mobile Analysis Mobile Analytics Mobile Devices Mobile Marketing Mixer Module Motorola MVC4 MWC MWC 2017 MWC16 MyPhone Native NET New Release News News Letter Nexus Nexus 6 Nexus 9 NFC NGINX Nokia Non-Mobile NVIDIA Omate On7 Opera Opera Mini Operating System Optimisation OS OSX 10.10 OTA Panasonic Patent PC Pebble Performance phablet phone PHP Poland Presentation Press Release Price Band PRIV PS4 Python QMobile QR Codes Redirection Research Reseller Responsive Images RESS Review reviews RIM Ringmark RWD Samsung Scala Screen Screen resolution Screen Size SEO Server Set Box Set Top Box Sharepoint Shark 1 SHIFT phones Sitecore SLUSH Smart TV Smartphone Smartphones Smartwatches Snapdragon Sony Sony Xperia Spain Swedish Beers Symbian Tablet Tablets Tesco Testing Top 5 TOTW TV UDS UK Umbraco Update updates US User Agent UserAgent User-Agent Vendors Version 3 VoLTE VR Wearable Web WebKit WebMatrix White Paper Widgets Widnows WiFi Wiko Wileyfox Windows Windows Phone Xbox XBox One Xiaomi Xperia Xperia z Yosemite Z10 ZenFon 2 ZOPO ZTE