I'm not sure who this was directed to.
Polling and data management:
owserver--owpython-->sqlite
User interface:
sqlite<-->wsgi/ajax<--json-->jQuery/js
Wsgi is very fast. I have used cgi and it is quite slow in comparison. I'm
not really sure the overhead you are speaking of, if you are comparing text
to database queries. I have not run an apples to apples comparison on
fetched flat text vs wsgi/sqlite of the same data, but I'd bet the
difference is nothing to speak of. I used text files before I moved to
databases, and there is just no comparison. With a text file, you must
hard-code everything. This is the definition of inflexible and unscalable.
Every time I wanted to add something, I had to rewrite at least one text
handler, but generally multiple. Now, I can add an action to my wsgi script
and pass options through json POST without changing anything that exists. I
can add fields to a database without breaking old code. This is not even to
mention reinforcing data relations and all the other 'beyond just a
container' features of a well-designed database.
Besides, do text files jump up and down for you like a python script? Do
they return dictionaries that come through as json into the DOM? I've had
quite enough text parsing for one lifetime, thank you.
In terms of the configuration, load is determined by poll frequency. You
control that through the database control parameters. Poll one every ten
minutes, one every week. Only run the poll script once a year if you want.
It's no different except it's easier to adjust with a database instead of
text files.
https://github.com/iinnovations/iicontrollibs/
weblibs will be published shortly at
https://github.com/iinnovations/cupidweblib
Colin
On Tue, Mar 18, 2014 at 10:39 AM, Michael Markstaller <[email protected]> wrote:
> How do you access owhttpd (:3001) from another (web)site using AJAX or
> similar ?
> It's about CORS obviously not suitable for older Mickeysoft-browsers and
> owhttpd not JSONP (which could be added easily though..)
> As I'm due to roll-out a new owfs anyway, I don't care about changes/new
> versions here ;)
>
> Michael
>
> On 18.03.2014 17:51, Roberto Spadim wrote:
> > i use text/
> > and parse everything with javascript
> > that's a single text
> >
> > but you can use json/ too
> >
> >
> > 2014-03-18 13:37 GMT-03:00 Michael Markstaller <[email protected]
> > <mailto:[email protected]>>:
> >
> > Hi,
> >
> > did anybody already do something asking owhttp (JSON) from within
> > another Site (same host, another port - which Same-Origin-Policy
> > disallows)?
> >
> > The Basics are clear, CORS or JSONP, just don't want to re-invent the
> > wheel ;)
> >
> > Michael
> >
> > P.S.: I'm just changing some old stuff and want to avoid having
> another
> > Perl/CGI/.. in between to fetch with owget/OWNet values as asking
> > owhttpd directly using XMLHttpRequest makes much more sense and much
> > less overhead on small boxes IMHO.
> >
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers