Four ways mobile app communicates with the server

Source: Internet
Author: User

Ever wondered how the information gets into the application installed in your mobile device, how it's updated, a nd how it was synchronized with your account in the Web application on the desktop? If you think, that's a case of miracle then it's time to know the truth.

How are it possible to comprise the database of 1000GB (no current mobile device can handle such an amount of space) into a n Application weighting 50KB? Impossible?

Let's take a real example. The database of the famous Facebook equals to 25TB and are stored on several servers. In other words, it can be translated as if the The Facebook DB could is stored in about 3200 USB flash cards with capacity of 8GB (a standard size of your photo camera flash card). Only imagine this amount! And on the opposite end, we can see your mobile application for this social media.

So, what is the options of communication between your mobile device and a remote Storage?

In fact, there is several ways how to does this.

Here is several possible variants among which to choose depending on the business goals.

1. Direct Connection(telnet/ssh)

The mobile application directly connects to the server, database to get respond. To ensure the confidentiality the SSH or another encryption type can used.

Features:

    • Direct connection using standard telnet/ssh;
    • User verification via simple Login/password;
    • UI commands converted to server commands.

Advantages:

    • Simple;
    • No additional costs on developing of the Back-end applications;
    • No additional costs on maintaining of the additional hardware.

Disadvantages:

        -No scalability;

        -Can ' t has access to external servers or databases (cloud access);

    -Have the only functionality of the
      TELNET/SSH protocol.

2. Server-side application(socket)

The mobile application directly connects to the Server-side application that's in simple words a software program Runnin G on a remote server.

Features:

        Direct connection to a server-side application;

        user verification via Simple/secure Login/password;

      • UI commands converted to server application commands.

Advantages:

    • Direct connection;
    • Can Use external resources (servers, databases) using In-app connection from the server side;
    • No additional costs on maintaining of the additional hardware.

Disadvantages:

-Scaling is possible, but is time and effort consumable;
-more complex and have no built-in possibilities for using in a cloud infrastructure;
-Require developing of the back end application;
-Back end application should is placed on the controllable server.

3. Web Application(HTTP Transmit datagram can be HTTP data or JSON, XML. Most commonly used this!!! )

The mobile application can communicate with the same Web application to get information from it.

Features:

using of a Web services via specialized API;
user verification via Simple/secure Login/password;
• UI commands converted to API requests.

Advantages:

    • Using of REST API;
    • Easy to develop the client side;
    • Can Use external resources (servers, databases) using connection from the server side;
    • No additional costs on maintaining of the additional hardware;
    • Back end part can is placed on the controllable server, or on a dedicated one;
    • Easily scalable.

Disadvantages:

-More complex.

* Note:require developing of the back end Web application and API services

4. Cloud Integration(SOAP??)

With Cloud Infrastructure as a Service, your organization actually receives a private Cloud that's quite similar to the C Lassic understanding of clouds but was used only for your company purposes and have better security.

Features:

Connect to a cloud using it ' s services (API);
user verification via Simple/secure Login/password;
• UI commands converted to cloud API commands.

Advantages:

    • Using of REST API;
    • Easy to develop the client side;
    • Can Use external resources (servers, databases) using cloud services;
    • Can access all of the services provided in a cloud;
    • Can gain access to every computer on a cloud according to user permissions;
    • Extremely scalable;
    • Extremely reliable and solid.

Disadvantages:

-Very Complex
-Require developing of a cloud services;
-Require maintaining of a cloud hardware;
-Time and cost consumable.

shh! Don ' t tell anybody! We just has opened you a secret of where the information that got into your smartphones and tablets is stored in reality . With no cables, no surgical manipulation, and no Pigeon Express. It has been again all about high technologies.

As reported by world IT statistics and experts, the mobile industry are on the rise and promises to continue evolving for s Everal further years at least. There is still many open challenges and a big space for extension in mobile application development including the storage and security spheres, but, hopefully, IT guys would amaze us with something new:)

Four ways mobile app communicates with the server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.