English 中文(简体)
4. 处理各发展中国家间电离层问题的结构
原标题:Structure to handle inter-device messaging
  • 时间:2011-10-23 08:26:39
  •  标签:
  • database

通过服务器处理多件设备信息的最好方式?<>。

<>Scenario

它将是一种能够在多个移动平台上运行的器具,包括网上浏览器。 一种瞬时投递者。 这些电文将通过服务器传送到另一个移动装置。

后端结构/概念必须基本与申请相同。 类似地向一位母亲传递信息。

www.un.org/Depts/DGACM/index_spanish.htm 我认为:

  1. Have the device send it to the web-server.
  2. Server saves it in a queue table in a database.
  3. When receiver device checks for new message (every second) it finds it in the queue.
  4. Remove it from queue and put message in history table.

Final

如何有效地安排/处理这种工具,以便取得与什么一样的结果?

最佳回答

你们可能希望把信息推向前进,而不是把信息推向每秒钟。 这有两个优势:

  1. Less bandwidth usage.
  2. You can skip the database part if the sender and the receiver are both connected when the message is sent. Only queue the messages in the database if the receiver isn t connected.

因此,如果你推动,就会大大提高业绩。

如果你有使用 Java本的网络读物,你可以使用JSON 溪流,或新浏览器使用Javad WebSokets。

问题回答

暂无回答




相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签