Naoyuki Hirata | 28 May 07:59
Picon

Re: 非同期処理の完了通知について‏

加藤様

いつもお世話になっております。
平田です。
諸事情によりご返信が遅れまして、大変申し訳ございませんでした。

結論としては、AP4R にはブラウザ (や Rails) に非同期処理の終了を
通知するような仕組みはありません。
# 逆に質問となってしまうのですが、ユーザー(ブラウザ) 側でどの
# ように通知を受けることを検討されているのでしょうか?


通知とは異なりますが、ユーザーが非同期処理の終了を確認する方法
としては、

- 非同期処理の最後でユーザーにメール送信
- 非同期処理の最後で RSS 配信
- 非同期処理の処理状況をデータベースなどに保持し、その内容を表示
する画面を作成 (Amazon の配送状況の確認画面のイメージですね)
- 同じく状況をデータベースなどに保持し、適当な感覚でブラウザから
ポーリングして表示

といったあたりがよく使うものだと思います。
いずれもアプリケーションで作り込むことで対応しています。
ご指摘誠にありがとうございます。
AP4Rの機能ではございませんが、AjaxでレスポンスをJSONP形式で受け取り、
JavaScriptでクライアントに通知している機能がございまして、
同様のことができないかと相談されたため、ご質問させていただいた次第です。

画面側に完了通知をおこなうとなりますと、やはりDBに結果を格納して、
定期的に監視するスタンスの方がよいのかなと思います。

ご丁寧にご回答いただきまして、ありがとうございました。
またご質問させていただく機会もあるとは思いますが、
何卒宜しくお願い致します。

以上です。

Naoyuki Hirata | 26 Apr 14:53
Picon

非同期処理の完了通知について

ご担当者様

いつもお世話になっております。
平田と申します。

現在検証用にAP4Rを使用させていただいております。

http://gihyo.jp/dev/feature/01/ap4rにございますチュートリアルは一通り目を通させていただきましたが、
要件として非同期処理が終わったことをクライアントサイドに通知する仕組みがないかと調べております。

上記のような場合、よい方法はございますでしょうか?

お手数をおかけ致しますが、何卒宜しくお願い致します。

以上です。

追伸:
誤ってap4r-user-ja-owner <at> rubyforge.org宛てに送信してしまいました。
大変失礼致しました。


kato.kiwamu | 7 Feb 03:10
Picon
Favicon

[ANN] AP4R 0.3.6 Released

Hi all,

ap4r version 0.3.6 has been released.

= What is AP4R ?
AP4R, Asynchronous Processing for Ruby, is the implementation of reliable asynchronous message
processing. It provides message queuing, and message dispatching.
Using asynchronous processing, we can cut down turn-around-time of web applications by queuing, or can
utilize more machine power by load-balancing.
Also AP4R nicely ties with your Ruby on Rails applications. See Hello World sample application from rubyforge.

For more information, please step in AP4R homepage!
http://ap4r.rubyforge.org/wiki/wiki.pl

= Changelog
* Added: configuration to set HTTP timeout.
Based on a patch from Artem Vasiliev <abublic at gmail.com>
* Added: provisional support Rails2.0.
* Changed: the location of message_builder.rb from rails plugin to ap4r core (ap4r/lib directory).
* Fixed: bug (tracker #17206) that uninitialized constant error occurs when :active_record_store is
used as session store. 

Thanks,
kiwamu
_______________________________________________
ap4r-user mailing list
ap4r-user <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/ap4r-user
shinohara.shunichi | 28 Jan 01:39
Picon
Favicon

FW: ap4r-user-ja added to Gmane

しのはらです。

このメーリングリストのアーカイブは、今後 Gmane
に置かれるようになります。(The Mail Archive にも)
The archive of this list is on Gmane from now on (as well as The Mail Archive).

shino

-----Original Message-----
From: Gmane Administrator [mailto:admin <at> m.gmane.org] 
Sent: Sunday, January 27, 2008 5:26 PM
To: ap4r-user-ja-admin@...
Subject: ap4r-user-ja added to Gmane

We have received a request for adding the ap4r-user-ja@... mailing
list to the Gmane mail-to-news gateway/archive. A subscription request message
has been sent. If this is contrary to your wishes, please send a mail to
admin@... saying so, and the list will be removed from Gmane.

Gmane is a mail-to-news portal that never expires its messages.  It
therefore also functions as a mailing list archive.  It's a
bi-directional gateway, but Gmane verifies that its users' email
addresses are valid before passing the messages through the
news-to-mail gateway.  (Groups can also be made "read-only", which
means that Gmane won't forward any messages at all to the mailing
list.)

Gmane can encrypt addresses to make address harvesting difficult, and
heeds X-No-Archive and related headers.

If you wish to import older archives into Gmane, send a message to
the Gmane administrators with the URL of a Unix mbox archive of the
mailing list.

In partnership with The Mail Archive, messages will be archived on
that service as well. This provides redundancy across two archival
services.

The following parameters are set for this mailing list:

    * Newsgroup name: gmane.comp.lang.ruby.ap4r.user.japanese
    * Mailing list address: ap4r-user-ja@...
    * The gateway is bi-directional
    * Address encryption is on
    * Spam detection is on
    * The list is described as:
      "Discussions for AP4R users in Japanese"
    * News URL: news://news.gmane.org/gmane.comp.lang.ruby.ap4r.user.japanese
    * Web URL: http://dir.gmane.org/gmane.comp.lang.ruby.ap4r.user.japanese

This newsgroup will be created when the first message from the
mailing list arrives.

For more information about the Gmane project, go to
<URL: http://gmane.org/>.

For more information about The Mail Archive, go to
<URL: http://www.mail-archive.com/>.

This request was handled by
wosc@...

_______________________________________________
ap4r-user-ja mailing list
ap4r-user-ja@...
http://rubyforge.org/mailman/listinfo/ap4r-user-ja

Gmane