Hi Rick

> We have tw5.1.2 installed for Node.js and with NGINX. We're using a
daemon to run the wiki out of it's own directory
(/home/ncemonwiki/emonwiki) and using SSL to access the nginx server
running one the same server.

That's great to hear.

At initial connect from Chrome browser, it takes about 60 seconds to server
> the wiki.
>

Ouch.

The current server functionality in TW5 is very primitive, targeting
personal usage. There's no caching within the server at the moment, for
instance, so the main wiki is recomputed from scratch each time it is
requested. There has been some recent work by Nathan Cain to make the
server more flexible and complete, but I'm not sure that it addresses
caching. Anyhow, caching of content is a very feasible improvement.

For the moment, it may be best to use NGINX to implement caching. The main
wiki is very amenable to caching; you can cache the generated HTML file at
any point. When it loads in the browser, it will automatically sync any
tiddlers that have been modified since the HTML file was generated.

How and what do I need to setup to serve the wiki at speeds comparable to
> what I see at tiddlywiki.com ?
>

http://tiddlywiki.com points to the GitHub Pages repo
https://github.com/Jermolene/jermolene.github.com, so it's served pretty
statically. I'm guessing that caching in NGINX is now fairly competitive
with static hosting, but I'm a big fan of using dumb static servers.
Historically, they've been much more reliable, resilient and speedy than
the sort of hand-rolled HTTP servers we're apt to build (I'm guilty of that
myself, of course).


> Eventually, we'd also like to be able to navigate directly to individual
> tiddlers (with permanent url) with less than 3 second response.
>

I think that that is perfectly feasible.

One other thing I'd like to get working in the server is being able to work
in a mode where we use paths instead of fragment identifiers to select
target tiddlers:

http://127.0.0.1:8080/mywiki/HelloThere

being equivalent to

http://127.0.0.1:8080/mywiki/#HelloThere


> Can anyone make suggestions for deployment?
>

I think there's other people here and elsewhere with more experience of
NGINX, but hopefully I can help on the TW5 side.

Best wishes

Jeremy


>
> Thanks for any suggestions.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to