![]() |
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
The latency I'm talking about is this:
maemo.org webserver has to do several queries to the talk database. If I ping your server from maemo.org, I get about 150ms delay. If I need to do 10 queries(Which is probably far too low) it takes at least 1.5 seconds to get the data. And I'm not counting work and datatransfers at that time. If you have parts in your script where you need data that is fetched in a previous query, this will increase more. And all this time no data is sent out to the user. Whenever you run your database server and webserver at different locations, you really start to see this effect. Another question is, how would you render the comments inside a maemo.org page? |
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
I understand where you are coming from Niels, but several things can be done to optimize performance.
If you are are writing to Talk's database, the delay is almost not important since the routine (when adding news, blog entry, or app) is called the same time when the entry is saved to maemo.org's server. And as I have mentioned, you can even call a Talk page so I can create the thread on my side. Now if you are concerned about multiple queries on Talk's database then don't run queries. Let me feed you data and render them asynchronously (ajax), just after the whole page is rendered. I see that you are running jQuery on maemo.org. It should work nicely. With regards to your question of rendering comments, no, we shouldn't render the same comments in maemo.org from Talk. The only info you need to display is the number of comments (e.g. 25 comments.) from the corresponding thread at Talk. A link on the number of comments will redirect the user to the discussion in Talk. Before we talk about how slow it will be, trying it out first might be worth a shot. |
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
(I'm actually learning some things from this thread.) ;)
Tim |
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
Quote:
|
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
Quote:
Quote:
Quote:
|
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
Quote:
Quote:
If in any case, the comments need to be displayed, again it can be loaded asynchronously -- I can pass the whole comments set (by page, if needed) in XML/JSON. |
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
It IS possible to have forum threads posted as comments on the site pages too, like I said before we do that on All About Symbian/N-Gage:
Here's a site page: http://www.allaboutngage.com/news/it...ual_world_.php Here's the forum thread for its comments: http://www.allaboutsymbian.com/forum...849&styleid=23 |
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
Alright, now I'm understanding the possibilities and limitations much better. Thanks for the discussion.
Niels really thinks that the comments should be visible in the same page, otherwise is a loss of functionality. Mmmm alright, but only to cede on something so you cede on something else. ;) For instance, any problem if the comments are posted in tmo and only in tmo? (no interface for posting in e.g. Brainstorm). Tradeoffs we could take: - The comments are not fully synced in real-time. No problem if there are some minutes of lag. If someone wants to post she wil go to the thread in tmo and there will find out that there are more comments in the very last minutes. Not a big deal. - Until we have SSO, users need to have accounts in maemo.org and tmo. Well, not a big deal either. Pure newcomers or lurkers will have enough rating a solution up/down in maemo.org. If you feel like commenting probably you want a tmo account anyway. Are there more tradeoffs? I can't come up with any. |
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
It's a laudable goal. Other possible problems with the solutions outlined:
A use case: Quote:
|
Re: Proposal: Use Talk as framework for comments in Brainstorm, Downloads and News
Quote:
Quote:
|
| All times are GMT. The time now is 16:12. |
vBulletin® Version 3.8.8