JP5197540B2 - Relay server and method for sharing information - Google Patents
Relay server and method for sharing information Download PDFInfo
- Publication number
- JP5197540B2 JP5197540B2 JP2009223042A JP2009223042A JP5197540B2 JP 5197540 B2 JP5197540 B2 JP 5197540B2 JP 2009223042 A JP2009223042 A JP 2009223042A JP 2009223042 A JP2009223042 A JP 2009223042A JP 5197540 B2 JP5197540 B2 JP 5197540B2
- Authority
- JP
- Japan
- Prior art keywords
- new arrival
- information
- arrival information
- server
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 28
- 230000001360 synchronised effect Effects 0.000 description 8
- 238000012217 deletion Methods 0.000 description 6
- 230000037430 deletion Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Description
本発明は、情報を共有するリレーサーバ及び方法に関する。特に、新着記事情報を管理し、共有するリレーサーバ及び方法に関する。 The present invention relates to a relay server and method for sharing information. In particular, the present invention relates to a relay server and method for managing and sharing new article information.
従来より、コンピュータネットワークにおいて、クライアント端末は、複数のクライアント端末間のサービスやファイル等の情報の共有を、コンピュータネットワークに接続されたサーバを介して行っている。 Conventionally, in a computer network, client terminals share information such as services and files among a plurality of client terminals via a server connected to the computer network.
このように情報を共有するクライアント・サーバシステムとして、例えば、最も高品質の映像や音声、文字を伝送することが可能な同期型情報共有サーバを情報共有セッションに割り当てる技術を開示する特許文献1が知られている。
As a client / server system for sharing information in this way, for example,
特許文献1は、同期型情報共有管理サーバが、情報共有セッションに参加する情報共有セッション端末に割り当てられているローカルエリアネットワークのアドレスを取得し、取得したアドレスに基づいて、複数の同期型情報共有サーバの一つを情報共有セッションを中継するための同期型情報共有サーバとして割り当てる、という技術を開示する。そして、クライアント端末は、割り当てられた同期型情報共有サーバを介してクライアント端末の間で情報を共有する。
In
しかしながら、特許文献1では、割り当てられた同期型情報共有サーバからクライアント端末が情報を取得することにより、クライアント端末の間で情報を共有することが開示されているが、割り当てられた同期型情報共有サーバが異なるクライアント端末の間で情報を共有することについては、何ら開示されていない。すなわち、クライアント端末が記事やブログ情報等を受け付けて同期型情報共有サーバに格納すると、通常は、その同期型情報共有サーバに接続されているクライアント端末からしか参照したり追記したりすることはできない。
However,
そこで、記事やブログ情報等の投稿を受け付けるサーバのうち、受け付けたサーバではないサーバに接続されているクライアント端末からでも、投稿された記事を参照したり、投稿された記事に追記したりすることができるようにするサーバが求められている。 Therefore, referring to posted articles or adding to posted articles from a client terminal connected to a server that accepts posts such as articles and blog information, etc. There is a need for a server that can do this.
本発明は、フロントエンドサーバが、投稿を受け付けるフロントエンドサーバのうち新着の投稿を受け付けたフロントエンドサーバでなくても、投稿された新着の記事を参照し、その記事に受け付けた記事を追記できるようにするリレーサーバ及び方法を提供することを目的とする。 In the present invention, even if the front-end server is not the front-end server that accepts new posts among the front-end servers that accept posts, it can refer to the posted new articles and add the accepted articles to the articles. It is an object of the present invention to provide a relay server and method.
本発明では、以下のような解決手段を提供する。 The present invention provides the following solutions.
(1) ユーザ端末から記事の投稿を受け付ける複数のフロントエンドサーバと通信可能に接続されたリレーサーバであって、前記投稿を受け付けたことを示す新着情報を記憶するメモリと、前記複数のフロントエンドサーバのうちいずれか一のフロントエンドサーバから投稿情報を受信する投稿情報受信手段と、前記投稿情報受信手段が受信した投稿情報から前記新着情報を作成し、当該新着情報を前記メモリに格納する新着情報格納手段と、前記新着情報格納手段が作成した前記新着情報を、前記複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信するリレー手段と、前記リレー手段が配信した前記新着情報を保有しないフロントエンドサーバを特定する特定手段と、前記特定手段が特定したフロントエンドサーバに、前記メモリに記憶されている全ての前記新着情報を送信するレジューム手段と、を備えるリレーサーバ。 (1) A relay server that is communicably connected to a plurality of front-end servers that accept article postings from a user terminal, the memory storing new arrival information indicating that the posting has been accepted, and the plurality of front-ends Post information receiving means for receiving post information from any one of the front-end servers, and new information is created from the post information received by the post information receiving means, and the new information is stored in the memory. An information storage means, a relay means for delivering the new arrival information created by the new arrival information storage means to all other front end servers among the plurality of front end servers, and the new arrival information delivered by the relay means. A specifying means for specifying a front-end server that is not owned, and a front-end server specified by the specifying means A relay server and a resume means for transmitting all of the new information stored in the memory.
(1)の構成によれば、本発明に係るリレーサーバは、ユーザ端末から記事の投稿を受け付ける複数のフロントエンドサーバと通信可能に接続されたリレーサーバであって、投稿を受け付けたことを示す新着情報を記憶するメモリを有する。そして、本発明に係るリレーサーバは、複数のフロントエンドサーバのうちいずれか一のフロントエンドサーバから投稿情報を受信し、受信した投稿情報から新着情報を作成し、当該新着情報をメモリに格納し、作成した新着情報を、複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信する。また、本発明に係るリレーサーバは、配信した新着情報を保有しないフロントエンドサーバを特定し、特定したフロントエンドサーバに、メモリに記憶されている全ての新着情報を送信する。 According to the configuration of (1), the relay server according to the present invention is a relay server that is communicably connected to a plurality of front-end servers that accept article postings from the user terminal, and indicates that the posting has been accepted. It has a memory for storing newly arrived information. The relay server according to the present invention receives post information from any one of a plurality of front end servers, creates new arrival information from the received post information, and stores the new arrival information in a memory. The newly arrived information is distributed to all other front end servers among the plurality of front end servers. In addition, the relay server according to the present invention specifies a front-end server that does not hold the distributed new arrival information, and transmits all the new arrival information stored in the memory to the specified front-end server.
すなわち、本発明に係るリレーサーバは、複数のフロントエンドサーバのうちいずれか一のフロントエンドサーバによって送信された投稿情報から作成した新着情報をメモリに格納し、作成した新着情報を、他の全てのフロントエンドサーバに配信する。そして、本発明に係るリレーサーバは、配信した新着情報を保有しないフロントエンドサーバを特定し、メモリに記憶されている全ての新着情報を送信する。したがって、本発明に係るリレーサーバは、フロントエンドサーバに新着情報を配信し、新着情報を保有しないフロントエンドサーバを特定して、メモリに記憶されている全ての新着情報を送信するので、フロントエンドサーバ同士の新着情報についての同期を取ることができる。その結果、フロントエンドサーバは、新着の投稿を受け付けたフロントエンドサーバでなくても、配信された新着情報に基づいて、投稿された新着の記事を参照し、その記事に受け付けた記事を追記することができる。 That is, the relay server according to the present invention stores the new arrival information created from the posted information transmitted by any one of the plurality of front end servers in the memory, To the front-end server. Then, the relay server according to the present invention specifies a front-end server that does not hold the distributed new arrival information, and transmits all the new arrival information stored in the memory. Therefore, the relay server according to the present invention distributes new arrival information to the front-end server, identifies a front-end server that does not have new arrival information, and transmits all new arrival information stored in the memory. It is possible to synchronize new information between servers. As a result, even if the front-end server is not the front-end server that accepted the new post, the front-end server refers to the posted new article and adds the accepted article to the article based on the new information distributed. be able to.
(2) 前記メモリに前記新着情報が記憶されていない場合に、前記メモリをバックアップするバックアップサーバに前記新着情報を要求し、当該バックアップサーバから全ての前記新着情報を受信し、前記メモリに格納する新着情報取得手段をさらに備え、前記リレー手段は、前記新着情報格納手段が作成した前記新着情報を、前記複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信すると共に、前記バックアップサーバに配信する(1)に記載のリレーサーバ。 (2) When the new arrival information is not stored in the memory, the new arrival information is requested to the backup server that backs up the memory, and all the new arrival information is received from the backup server and stored in the memory. New arrival information acquisition means is further provided, and the relay means distributes the new arrival information created by the new arrival information storage means to all other front end servers among the plurality of front end servers, and to the backup server. The relay server according to (1) for distribution.
(2)の構成によれば、(1)に記載のリレーサーバは、メモリに新着情報が記憶されていない場合に、メモリをバックアップするバックアップサーバに新着情報を要求し、当該バックアップサーバから全ての新着情報を受信し、メモリに格納する。そして、本発明に係るリレーサーバは、作成した新着情報を、複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信すると共に、バックアップサーバに配信する。 According to the configuration of (2), when the new arrival information is not stored in the memory, the relay server described in (1) requests the new arrival information from the backup server that backs up the memory, New arrival information is received and stored in the memory. The relay server according to the present invention distributes the created new arrival information to all other front-end servers among the plurality of front-end servers and also to the backup server.
すなわち、本発明に係るリレーサーバは、作成した新着情報を、複数のフロントエンドサーバのうち投稿情報を送信したフロントエンドサーバ以外の全てのフロントエンドサーバに配信すると共に、バックアップサーバに配信し、メモリに新着情報が記憶されていない場合に、バックアップサーバから全ての新着情報を取得し、メモリに格納する。したがって、本発明に係るリレーサーバは、メモリに新着情報が記憶されていない場合に、バックアップサーバから新着情報を取得することができるので、新着情報を確実に保有しているという信頼性を保持することができる。 That is, the relay server according to the present invention distributes the created new arrival information to all front-end servers other than the front-end server that transmitted the posted information among the plurality of front-end servers, and also distributes it to the backup server, If no new arrival information is stored in the server, all new arrival information is acquired from the backup server and stored in the memory. Therefore, since the new arrival information can be acquired from the backup server when the new arrival information is not stored in the memory, the relay server according to the present invention maintains the reliability that the new arrival information is securely held. be able to.
(3) 前記メモリは、キャッシュメモリにFIFOメモリとして構成される(1)又は(2)に記載のリレーサーバ。 (3) The relay server according to (1) or (2), wherein the memory is configured as a FIFO memory in a cache memory.
したがって、本発明に係るリレーサーバは、キャッシュメモリに新着情報を格納するので、さらに高速な処理を行うことができる。 Therefore, since the relay server according to the present invention stores newly arrived information in the cache memory, it can perform higher-speed processing.
(4) ユーザ端末から記事の投稿を受け付ける複数のフロントエンドサーバと通信可能に接続され、前記投稿を受け付けたことを示す新着情報を記憶するメモリを有するリレーサーバが、前記新着情報を配信する方法であって、前記複数のフロントエンドサーバのうちいずれか一のフロントエンドサーバから投稿情報を受信するステップと、受信した投稿情報から前記新着情報を作成し、当該新着情報を前記メモリに格納するステップと、作成した前記新着情報を、前記複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信するステップと、配信した前記新着情報を保有しないフロントエンドサーバを特定するステップと、特定したフロントエンドサーバに、前記メモリに記憶されている全ての前記新着情報を送信するステップと、を備える方法。 (4) A method in which a relay server that is communicably connected to a plurality of front-end servers that accept article postings from a user terminal and has a memory that stores new arrival information indicating acceptance of the postings distributes the new arrival information. And receiving post information from any one of the plurality of front end servers, creating the new arrival information from the received post information, and storing the new arrival information in the memory. Distributing the created new arrival information to all other front end servers among the plurality of front end servers, identifying a front end server that does not hold the distributed new arrival information, and identifying the front Send all the new arrival information stored in the memory to the end server. The method comprising the steps, a.
したがって、本発明に係る方法は、リレーサーバが、フロントエンドサーバに新着情報を配信し、新着情報を保有しないフロントエンドサーバを特定して、メモリに記憶されている全ての新着情報を送信するので、フロントエンドサーバ同士の新着情報についての同期を取ることができる。その結果、フロントエンドサーバは、新着の投稿を受け付けたフロントエンドサーバでなくても、配信された新着情報に基づいて、投稿された新着の記事を参照し、その記事に受け付けた記事を追記することができる。 Therefore, in the method according to the present invention, the relay server distributes new arrival information to the front-end server, specifies a front-end server that does not have new arrival information, and transmits all new arrival information stored in the memory. It is possible to synchronize the new arrival information between the front-end servers. As a result, even if the front-end server is not the front-end server that accepted the new post, the front-end server refers to the posted new article and adds the accepted article to the article based on the new information distributed. be able to.
本発明によれば、リレーサーバは、フロントエンドサーバに新着情報を配信し、新着情報を保有しないフロントエンドサーバを特定して、記憶されている全ての新着情報を送信し、フロントエンドサーバ同士の新着情報についての同期を取ることができる。その結果、フロントエンドサーバは、投稿を受け付けるフロントエンドサーバのうち新着の投稿を受け付けたフロントエンドサーバでなくても、配信された新着情報に基づいて、投稿された新着の記事を参照し、その記事に受け付けた記事を追記することができる。 According to the present invention, the relay server distributes new arrival information to the front-end servers, specifies a front-end server that does not have new arrival information, transmits all stored new arrival information, and Synchronize about new arrival information. As a result, even if the front-end server is not the front-end server that accepts new posts among the front-end servers that accept posts, the front-end server refers to the posted new articles based on the delivered new information, You can add articles that you have accepted to articles.
さらに、本発明に係るリレーサーバは、新着情報を処理が高速なメモリに格納し、メモリに新着情報が記憶されていない場合に、バックアップサーバから全ての新着情報を取得することができる。したがって、本発明に係るリレーサーバは、新着情報を確実に保有しているという信頼性を保持することができる。 Furthermore, the relay server according to the present invention stores new arrival information in a high-speed processing memory, and can acquire all new arrival information from the backup server when no new arrival information is stored in the memory. Therefore, the relay server according to the present invention can maintain the reliability that new arrival information is securely held.
以下、本発明の実施形態について図を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
本実施形態は、コンピュータ及びその周辺装置に適用される。本実施形態における各部は、コンピュータ及びその周辺装置が備えるハードウェア並びに該ハードウェアを制御するソフトウェアによって構成される。 This embodiment is applied to a computer and its peripheral devices. Each unit in the present embodiment is configured by hardware included in a computer and its peripheral devices, and software that controls the hardware.
上記ハードウェアには、制御部としてのCPU(Central Processing Unit)の他、記憶部、通信装置、表示装置及び入力装置が含まれる。記憶部としては、例えば、メモリ(RAM:Random Access Memory、ROM:Read Only Memory等)、ハードディスクドライブ(HDD:Hard Disk Drive)及び光ディスク(CD:Compact Disk、DVD:Digital Versatile Disk等)ドライブが挙げられる。通信装置としては、例えば、各種有線及び無線インターフェース装置が挙げられる。表示装置としては、例えば、液晶ディスプレイやプラズマディスプレイ等の各種ディスプレイが挙げられる。入力装置としては、例えば、キーボード及びポインティング・デバイス(マウス、トラッキングボール等)が挙げられる。 The hardware includes a storage unit, a communication device, a display device, and an input device in addition to a CPU (Central Processing Unit) as a control unit. Examples of the storage unit include a memory (RAM: Random Access Memory, ROM: Read Only Memory, etc.), a hard disk drive (HDD: Hard Disk Drive), and an optical disk (CD: Compact Disc, DVD: Digital Versatile Drive, etc.). It is done. Examples of the communication device include various wired and wireless interface devices. Examples of the display device include various displays such as a liquid crystal display and a plasma display. Examples of the input device include a keyboard and a pointing device (mouse, tracking ball, etc.).
上記ソフトウェアには、上記ハードウェアを制御するコンピュータ・プログラムやデータが含まれる。コンピュータ・プログラムやデータは、記憶部により記憶され、制御部により適宜実行、参照される。また、コンピュータ・プログラムやデータは、通信回線を介して配布されることも可能であり、CD−ROM等のコンピュータ可読媒体に記録して配布されることも可能である。 The software includes a computer program and data for controlling the hardware. The computer program and data are stored in the storage unit, and are appropriately executed and referenced by the control unit. The computer program and data can be distributed via a communication line, or can be recorded on a computer-readable medium such as a CD-ROM and distributed.
図1は、本発明の一実施形態に係るリレーサーバ10の特徴を示すブロック図である。リレーサーバ10は、ユーザから記事の投稿を受け付ける複数のフロントエンドサーバ40a,40b・・・(以下、複数のフロントエンドサーバを区別しない場合は「フロントエンドサーバ40」とする)と通信可能に接続される。そして、リレーサーバ10は、メモリとしてFIFO(First In First Out)メモリ20と、投稿情報受信手段として投稿情報受信部11と、新着情報格納手段として新着情報格納部12と、リレー手段としてリレー部13と、特定手段として特定部14と、レジューム手段としてレジューム部15と、を備える。
FIG. 1 is a block diagram showing features of a
FIFOメモリ20は、先入れ先出しのメモリであって、新着情報を格納された順に記憶する。すなわち、格納された新着情報のデータ量が、FIFOメモリ20の容量に達すると、FIFOメモリ20は、記憶している中で最初に記憶した1件の新着情報を消去して、新しく格納された1件を記憶する。例えば、FIFOメモリ20が新着情報100件を記憶できるとすると、FIFOメモリ20は、格納された1件目から100件目までの新着情報を順に記憶し、101件目が格納されると、最初に格納された1件目を消去し、2件目から101件目までを記憶する。さらに、FIFOメモリ20は、例えば、RAMやキャッシュメモリ上に構成され、フラッシュメモリ等の補助記憶装置に比較して高速な読み出しや書き込みが可能である。
The
投稿情報受信部11は、複数のフロントエンドサーバ40のうちいずれか一のフロントエンドサーバ40から投稿情報を受信する。すなわち、フロントエンドサーバ40においてユーザ端末(図示せず)から投稿情報を受け付け、投稿情報受信部11は、受け付けた一のフロントエンドサーバ40から、投稿情報を受信する。例えば、ブログやSNS(Social Networking Service)のフロントエンドサーバ40は、ユーザ端末から記事の投稿を受け付け、受け付けた投稿記事データをバックエンドサーバ(図示せず)に格納させる。そして、フロントエンドサーバ40は、バックエンドサーバの情報や投稿したユーザの情報を含む投稿情報を、投稿情報受信部11に送信する。
The posted
新着情報格納部12は、投稿情報受信部11が受信した投稿情報から新着情報を作成し、FIFOメモリ20に格納する。作成された新着情報は、ユーザ情報と、記事データ情報とを含む。ユーザ情報は、例えば、ユーザIDを含む。記事データ情報は、例えば、投稿時刻と、投稿を受け付けたフロントエンドサーバ40の情報と、記事識別情報と、記事データを格納したバックエンドサーバの情報と、を含んでいる。
The new arrival
リレー部13は、新着情報格納部12が作成した新着情報を、複数のフロントエンドサーバ40のうち他の全てのフロントエンドサーバ40に配信する。すなわち、リレー部13は、複数のフロントエンドサーバ40のうち投稿情報を送信したフロントエンドサーバ40以外の全てのフロントエンドサーバ40に新着情報を配信する。フロントエンドサーバ40は、配信された新着情報をメモリに格納することにより、他のフロントエンドサーバ40で投稿された記事についての新着情報を、サーバ(例えば、プロキシサーバ)に問い合わせることなく、フロントエンドサーバ40内で取得することができる。
The
特定部14は、リレー部13が配信した新着情報を保有しないフロントエンドサーバ40を特定する。例えば、特定部14は、再起動等によりメモリに保持していた新着情報を消失したフロントエンドサーバ40から、新着情報を要求する要求信号を受信することにより、当該フロントエンドサーバ40を、新着情報を保有しないフロントエンドサーバ40として特定する。さらに、リレー部13がフロントエンドサーバ40に新着情報を配信した時に当該フロントエンドサーバ40から、新着情報を保有しないというエラー情報を受信した場合に、特定部14は、エラー情報を送信したフロントエンドサーバ40を、新着情報を保有しないフロントエンドサーバ40として特定する。
The specifying
レジューム部15は、特定部14が特定したフロントエンドサーバ40に、FIFOメモリ20に記憶されている全ての新着情報を送信する。例えば、新着情報の送信は、FIFOメモリ20に記憶された順に順次行われるとしてもよいし、新着情報の記憶の順番を維持して、一括して行われるとしてもよい。
The
図2は、本発明の一実施形態に係るリレーサーバ10の機能構成を示すブロック図である。リレーサーバ10は、図1の構成に加えて、新着情報取得手段として新着情報取得部16を備える。リレーサーバ10には、バックアップサーバ30が接続されている。
FIG. 2 is a block diagram showing a functional configuration of the
バックアップサーバ30は、メモリをバックアップするサーバであって、リレーサーバ10と同一の新着情報を、例えば、メモリに格納する。
The
リレー部13は、上述の機能に加えて、バックアップサーバ30に配信する。すなわち、リレー部13は、新着情報格納部12が作成した新着情報を、複数のフロントエンドサーバ40のうち、投稿情報を送信したフロントエンドサーバ40以外の全てのフロントエンドサーバ40に配信すると共に、バックアップサーバ30に配信する。
The
新着情報取得部16は、FIFOメモリ20に新着情報が記憶されていない場合に、バックアップサーバ30に新着情報を要求し、バックアップサーバ30から全ての新着情報を受信し、FIFOメモリ20に格納する。例えば、リレーサーバ10自身が再起動し、FIFOメモリ20の新着情報を消去した場合に、新着情報取得部16は、バックアップサーバ30から、バックアップサーバ30が保有する全ての新着情報を受信し、当該新着情報をFIFOメモリ20に格納する。そして、新着情報取得部16がバックアップサーバ30から全ての新着情報を取得した後に、新着情報格納部12は、投稿情報から作成した新着情報をFIFOメモリ20に格納する。
The new arrival
フロントエンドサーバ40は、投稿を受け付けたフロントエンドサーバ40の情報及び記事識別情報と、削除要求とを、投稿情報としてリレーサーバ10に送信することができる。この送信により、削除要求を受信したリレーサーバ10は、FIFOメモリ20に格納している新着情報のうち、削除要求された新着情報のみを削除することが可能である。そして、リレーサーバ10によって配信される新着情報の削除要求によって、配信されたフロントエンドサーバ40及びバックアップサーバ30は、メモリに保有している新着情報のうち、削除要求された新着情報のみを削除する。
The front-
図3は、本発明の一実施形態に係るリレーサーバ10の新着情報のデータの例を示す図である。
FIG. 3 is a diagram illustrating an example of new arrival information data of the
新着情報のデータは、ユーザ情報と、記事データ情報とから構成される。ユーザ情報は、投稿したユーザの識別情報であるユーザIDから構成される。記事データ情報は、ユーザが投稿した時刻である投稿時刻と、投稿を受け付けたフロントエンドサーバ40の識別情報である受付サーバIDと、記事識別情報である記事IDと、投稿された記事データを記憶するバックエンドサーバの識別情報である記事データサーバIDとから構成される。ユーザ情報は、ユーザID以外にパスワード等のユーザを認証する情報を含むとしてもよい。また、記事データ情報は、投稿された記事のタイトルも含むとしてもよい。例えば、新着情報を配信されたフロントエンドサーバ40は、新着の投稿を受け付けたフロントエンドサーバ40でなくても、受付サーバID及び記事IDと、記事データサーバIDとに基づいて、投稿された新着の記事を参照し、その記事に受け付けた記事を追記することができる。
The data of new arrival information is composed of user information and article data information. The user information includes a user ID that is identification information of the posted user. The article data information stores a posting time that is a time when the user has posted, an acceptance server ID that is identification information of the front-
図4は、本発明の一実施形態に係るリレーサーバ10のメイン処理を示すフローチャートであり、図5は、図4に続く、メイン処理を示すフローチャートである。なお、本処理は、プログラム開始指令により処理を開始し、プログラム終了指令により処理を終了する。
FIG. 4 is a flowchart showing a main process of the
図4のステップS101において、CPUは、FIFOメモリ20に新着情報が記憶されているか否かを判断する。この判断がYESの場合、CPUは処理をステップS103に移し、NOの場合、CPUは処理をステップS102に移す。
In step S <b> 101 of FIG. 4, the CPU determines whether new arrival information is stored in the
ステップS102において、CPUは、バックアップサーバ30から新着情報を取得し、格納する。より具体的には、CPUは、バックアップサーバ30に新着情報を要求するコマンドを送信し、バックアップサーバ30から、バックアップサーバ30が保有する全ての新着情報を受信し、受信した新着情報をFIFOメモリ20に格納する。その後、CPUは、処理をステップS103に移す。
In step S <b> 102, the CPU acquires new arrival information from the
ステップS103において、CPUは、フロントエンドサーバ40から投稿情報を受信か否かを判断する。すなわち、CPUは、フロントエンドサーバ40から受信したデータを判断し、投稿情報を受信したか否かを判断する。この判断がYESの場合、CPUは処理を図5のステップS106に移し、NOの場合、CPUは処理をステップS104に移す。
In step S <b> 103, the CPU determines whether posting information has been received from the front-
ステップS104において、CPUは、新着情報の要求を受信か否かを判断する。すなわち、CPUは、フロントエンドサーバ40から受信したデータを判断し、新着情報を要求する要求信号を受信したか否かを判断する。この判断がYESの場合、CPUは処理をステップS105に移し、NOの場合、CPUは処理をステップS103に移す。
In step S104, the CPU determines whether or not a request for new arrival information has been received. That is, the CPU determines the data received from the front-
ステップS105において、CPUは、FIFOメモリ20の全ての新着情報をフロントエンドサーバ40に送信する。より具体的には、CPUは、FIFOメモリ20に記憶されている全ての新着情報を、FIFOメモリ20に記憶されている順に順次、フロントエンドサーバ40に送信する。その後、CPUは、処理をステップS103に移す。
In step S <b> 105, the CPU transmits all newly arrived information in the
図5のステップS106において、CPUは、投稿情報を受信する。より具体的には、CPUは、ユーザの端末から投稿を受け付けたフロントエンドサーバ40から、投稿したユーザのユーザIDと、投稿時刻と、受け付けたフロントエンドサーバ40の受付サーバIDと、受け付けた記事の記事IDと、受け付けた記事を格納したバックエンドサーバの記事データサーバIDとを含む投稿情報を受信する。その後、CPUは、処理をステップS107に移す。
In step S106 of FIG. 5, the CPU receives post information. More specifically, the CPU, from the front-
ステップS107において、CPUは、新着情報を作成し、FIFOメモリ20に格納する。より具体的には、CPUは、投稿情報に基づいて、ユーザIDと、投稿時刻と、受付サーバIDと、記事IDと、記事データサーバIDとを含む新着情報を作成し、FIFOメモリ20に格納する。FIFOメモリ20は、新着記事情報を格納された順に記憶する。記憶容量を超える場合には、FIFOメモリ20は、記憶した中で最初の新着情報を消去し、最新の新着情報を最後に記憶する。新着情報が削除要求の場合には、CPUは、受付サーバID及び記事IDによって指定された新着情報のみ削除する。その後、CPUは、処理をステップS108に移す。
In step S <b> 107, the CPU creates new arrival information and stores it in the
ステップS108において、CPUは、新着情報を他の全てのフロントエンドサーバ40に配信すると共に、バックアップサーバ30に配信する。より具体的には、CPUは、作成した新着情報を、フロントエンドサーバ40のうち投稿情報を送信したフロントエンドサーバ40以外の全てのフロントエンドサーバ40に配信すると共に、作成した新着情報を、バックアップサーバ30に配信する。投稿情報に基づいて作成した新着情報が削除要求の場合には、同様に、CPUは、新着情報の削除要求を、削除要求を送信したフロントエンドサーバ40以外の全てのフロントエンドサーバ40に配信すると共に、バックアップサーバ30に配信する。その後、CPUは、処理をステップS109に移す。
In step S <b> 108, the CPU distributes new arrival information to all other front-
ステップS109において、CPUは、フロントエンドサーバ40からエラー情報を受信か否かを判断する。より具体的には、CPUは、新着情報を送信されたフロントエンドサーバ40から、保有する新着情報が0件であることを示すデータを受信したか否かを判断する。この判断がYESの場合、CPUは処理をステップS110に移し、NOの場合、CPUは処理を図4のステップS103に移す。
In step S109, the CPU determines whether error information is received from the front-
ステップS110において、CPUは、FIFOメモリ20の全ての新着情報をフロントエンドサーバ40に送信する。より具体的には、CPUは、FIFOメモリ20に記憶されている全ての新着情報を、FIFOメモリ20に記憶された順に順次、フロントエンドサーバ40に送信する。その後、CPUは、処理を図4のステップS103に移す。
In step S <b> 110, the CPU transmits all newly arrived information in the
本実施形態によれば、リレーサーバ10は、投稿を受け付けたことを示す新着情報を記憶するFIFOメモリ20を有する。そして、リレーサーバ10は、複数のフロントエンドサーバ40のうちいずれか一のフロントエンドサーバ40から投稿情報を受信し、受信した投稿情報から新着情報を作成し、当該新着情報をFIFOメモリ20に格納し、作成した新着情報を、複数のフロントエンドサーバ40のうち他の全てのフロントエンドサーバ40に配信すると共に、バックアップサーバ30に配信する。また、リレーサーバ10は、配信した新着情報を保有しないフロントエンドサーバ40を特定し、特定したフロントエンドサーバ40に、FIFOメモリ20に記憶されている全ての新着情報を送信する。したがって、リレーサーバ10は、フロントエンドサーバ40に新着情報を配信し、新着情報を保有しないフロントエンドサーバ40には、記憶されている全ての新着情報を送信するので、フロントエンドサーバ40同士の新着情報についての同期を取ることができる。その結果、フロントエンドサーバ40は、新着の投稿を受け付けたフロントエンドサーバ40でなくても、配信された新着情報に基づいて、投稿された新着の記事を参照し、その記事に受け付けた記事を追記することができる。さらに、リレーサーバ10は、FIFOメモリ20に新着情報が記憶されていない場合に、バックアップサーバ30から、バックアップサーバ30が保有する全ての新着情報を取得することができる。よって、リレーサーバ10は、新着情報を確実に保有しているという信頼性を保持することができる。
According to the present embodiment, the
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施例に記載されたものに限定されるものではない。 As mentioned above, although embodiment of this invention was described, this invention is not restricted to embodiment mentioned above. The effects described in the embodiments of the present invention are only the most preferable effects resulting from the present invention, and the effects of the present invention are limited to those described in the embodiments of the present invention. is not.
10 リレーサーバ
11 投稿情報受信部
12 新着情報格納部
13 リレー部
14 特定部
15 レジューム部
16 新着情報取得部
20 FIFOメモリ
30 バックアップサーバ
40 フロントエンドサーバ
DESCRIPTION OF
Claims (4)
前記投稿を受け付けたことを示す新着情報を記憶するメモリと、
前記複数のフロントエンドサーバのうちいずれか一のフロントエンドサーバから投稿情報を受信する投稿情報受信手段と、
前記投稿情報受信手段が受信した投稿情報から前記新着情報を作成し、当該新着情報を前記メモリに格納する新着情報格納手段と、
前記新着情報格納手段が作成した前記新着情報を、前記複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信するリレー手段と、
前記リレー手段が配信した前記新着情報を保有しないフロントエンドサーバを特定する特定手段と、
前記特定手段が特定したフロントエンドサーバに、前記メモリに記憶されている全ての前記新着情報を送信するレジューム手段と、
を備えるリレーサーバ。 A relay server that is communicably connected to a plurality of front-end servers that accept article postings from a user terminal,
A memory for storing new arrival information indicating that the posting has been accepted;
Post information receiving means for receiving post information from any one of the plurality of front end servers;
New arrival information storage means for creating the new arrival information from the posting information received by the posting information reception means and storing the new arrival information in the memory;
Relay means for delivering the new arrival information created by the new arrival information storage means to all other front end servers among the plurality of front end servers;
A specifying means for specifying a front-end server that does not hold the new arrival information distributed by the relay means;
Resume means for transmitting all the new arrival information stored in the memory to the front end server specified by the specifying means;
A relay server comprising:
前記リレー手段は、前記新着情報格納手段が作成した前記新着情報を、前記複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信すると共に、前記バックアップサーバに配信する請求項1に記載のリレーサーバ。 When the new arrival information is not stored in the memory, the new arrival information is requested from the backup server that backs up the memory, all the new arrival information is received from the backup server, and the new arrival information is stored in the memory. Further comprising means,
2. The relay unit according to claim 1, wherein the relay unit distributes the new arrival information created by the new arrival information storage unit to all other front-end servers among the plurality of front-end servers and to the backup server. Relay server.
前記複数のフロントエンドサーバのうちいずれか一のフロントエンドサーバから投稿情報を受信するステップと、
受信した投稿情報から前記新着情報を作成し、当該新着情報を前記メモリに格納するステップと、
作成した前記新着情報を、前記複数のフロントエンドサーバのうち他の全てのフロントエンドサーバに配信するステップと、
配信した前記新着情報を保有しないフロントエンドサーバを特定するステップと、
特定したフロントエンドサーバに、前記メモリに記憶されている全ての前記新着情報を送信するステップと、
を備える方法。 A relay server that is communicably connected to a plurality of front-end servers that accept article postings from a user terminal, and that has a memory for storing new arrival information indicating that the posting has been accepted, is a method for delivering the new arrival information. ,
Receiving post information from any one of the plurality of front-end servers;
Creating the new arrival information from the received post information and storing the new arrival information in the memory;
Delivering the created new arrival information to all other front-end servers among the plurality of front-end servers;
Identifying a front-end server that does not hold the delivered new information;
Transmitting all the new arrival information stored in the memory to the identified front-end server;
A method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009223042A JP5197540B2 (en) | 2009-09-28 | 2009-09-28 | Relay server and method for sharing information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009223042A JP5197540B2 (en) | 2009-09-28 | 2009-09-28 | Relay server and method for sharing information |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011070560A JP2011070560A (en) | 2011-04-07 |
JP5197540B2 true JP5197540B2 (en) | 2013-05-15 |
Family
ID=44015759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009223042A Expired - Fee Related JP5197540B2 (en) | 2009-09-28 | 2009-09-28 | Relay server and method for sharing information |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5197540B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006099164A (en) * | 2004-09-28 | 2006-04-13 | Megasoft Kk | Content synchronization system and method |
JP4507249B2 (en) * | 2004-10-19 | 2010-07-21 | 株式会社日立製作所 | System and method for controlling storage device updates |
JP4326464B2 (en) * | 2004-12-09 | 2009-09-09 | 株式会社野村総合研究所 | Application system and method for synchronizing distributed data |
JP2008204183A (en) * | 2007-02-20 | 2008-09-04 | Yukiya Kanbara | Text data management server, text data management system, text data management method, and text data management program |
-
2009
- 2009-09-28 JP JP2009223042A patent/JP5197540B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2011070560A (en) | 2011-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10110727B2 (en) | Systems and methods for event stream management | |
US9699260B2 (en) | Scalable, real-time messaging system | |
US9083693B2 (en) | Managing private information in instant messaging | |
US20080189294A1 (en) | Method and apparatus for sharing content | |
US10333879B2 (en) | Scalable, real-time messaging system | |
EP3198840B1 (en) | Preemptive loading of protected data for streaming mobile devices | |
US20140325391A1 (en) | System and method for updating information in an instant messaging application | |
EP2698730A1 (en) | Data acquisition method, device and system | |
CN106817388B (en) | Method and device for acquiring data by virtual machine and host machine and system for accessing data | |
US10409656B2 (en) | Efficiently receiving messages across a large number of messaging entities | |
KR20090003405A (en) | File upload system and method | |
US20130232208A1 (en) | Method and device for updating messages | |
WO2010078791A1 (en) | Method for browsing social networking services (sns) and device for providing sns browsing | |
WO2012012075A1 (en) | System for replication and delivery of remote data and accumulated metadata with enhanced display | |
JP5405550B2 (en) | File transmission management system and file transmission management method for supporting file transmission in mobile messaging service | |
JP5552720B2 (en) | Storage system, storage server, user data sharing method, and program | |
KR20120073799A (en) | Data synchronizing and servicing apparatus and method based on cloud storage | |
JP5197540B2 (en) | Relay server and method for sharing information | |
WO2019242279A1 (en) | Message processing method and device | |
US20180241691A1 (en) | Access control for message channels in a messaging system | |
JP4695614B2 (en) | Access management apparatus, access management method, and access management program | |
WO2019134338A1 (en) | Video file processing method and program, application server, and storage medium | |
JP2006172296A (en) | Cache deletion method and content relay server | |
CN101771587A (en) | Digital media data processing method, digital media data processing device, digital media data processing system and server | |
JP2015026260A (en) | Data processing device, program, and data processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120221 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20120312 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20120419 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130115 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130205 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160215 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5197540 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |