On Mon, Jan 6, 2014 at 9:29 PM, Steve B <[email protected]> wrote: > I have a question, > Using lua pcall, to connect to a remote site, would a user on my site be > able to find the address of the remote site i am connect to? > The reason why i ask is because i am planning to make a website that deals > with sms messages. The website will show the account information, but the > remote site will store the data. > So in case of a ddos attack my site will be down but sms would still work > on the remote server. > > So what i am basically asking is the pcall function a bit like curl where > the user does not see the ip or domain of the remote site it is connecting > to? >
Hi Steve, a quick diagram of the query flow might help. I didn't get the picture of your setup to be able to answer. > Also i know you asked if you should keep lua or use server side > javascript instead - my question is that since mongoose and lua is about > 270 kb in size and uses low amount of ram, would the javascript scripting > engine be smaller or benefit performance wise then the current lua? > If javascript does benefit performance wise i would go for it. > > Although lua is not as big as javascript or php - i like it because its so > portable, and uses alot less resources then other scripting languages. > And since mongoose is just a portable web server - not meant to me like > apache or host more then one domain then i think lua would be best since > your mongoose project is suppose to be "minimal" > But like i said if javascript is better performance (and uses less or same > amount of ram as lua) then i would switch to javascript. > I plan to create a minimalistic, embeddable Javascript engine to serve as a scripting engine, and yes the idea is to have it small and fast. Initially, it will implement only a subset of Javascript standard plus interfaces needed for backend. That will definitely be smaller then Lua. File and socket IO, DB and subprocess interfaces seem like a good foundation. -- You received this message because you are subscribed to the Google Groups "mongoose-users" 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/mongoose-users. For more options, visit https://groups.google.com/groups/opt_out.
