Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Adam Reynolds
This. This beyond anything else. You would have a major problem with customer trust. On a side note you can google mongodb transactions and see the hassle/failure people have had trying to make transactional processes work within Mongodb. It really is the wrong tool for the job at the (moment). O

Re: [nodejs] Node.js with java

2012-10-24 Thread greelgorke
even more general: yes, use REST Am Dienstag, 23. Oktober 2012 23:10:16 UTC+2 schrieb Alexey Petrushin: > > It's not me who asked, I know node can work with ZeroMQ, so I advised it > :). > > General question - general answer. > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://

Re: [nodejs] Re: npm: version locking in modules

2012-10-24 Thread greelgorke
There is mostly enough time for testing, but not enough time to find out why test break. and if i can ensure, that the breaks are not caused by some unstable urgent release of a subsubsubdependency, i'd rather use lates stable version. life is too short to search for bugs in every peace of soft

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Karl
Trust is a big asset, I saw a recent study somewhere that webshoppers seem to be considerably more loyal than one assumes. More reason not to take chances. Risk taking was what got us into the current complex situation (I'm in Spain) El miércoles, 24 de octubre de 2012 09:51:23 UTC+2, Adam Reyn

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Hakan Guzelgoz
What about a combined solution between MongoDB and Mysql where you would use Mysql only for the transaction side of things and Mongo for all the rest? Would this be worth investigating? On Wed, Oct 24, 2012 at 11:13 AM, Karl wrote: > Trust is a big asset, I saw a recent study somewhere that web

Re: [nodejs] [ANN] Node Class Diagram

2012-10-24 Thread yogesh agrawal
Good One !!! On Wed, Oct 24, 2012 at 11:36 AM, Shigeki Ohtsu wrote: > Hi all, > > I'm pleased to announce a class diagram of the Node API is now open to > the pulbic at > > https://github.com/shigeki/node-class-diagram > > This is a UML-like diagram to show inheritances of each classes used in >

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread mlegenhausen
We build a e-commerce system on top of node, express and mongo and for my next ecommerce system I would use node, express again but not mongo. Cause when you have no ACID you need to do it your own and that can be very error proune, complicated and takes very much time! When you use both keep i

[nodejs] pipe two http request

2012-10-24 Thread chetan dhembre
hey i am doing some project in which i need to pipe two client together.. means i want to pipe two different http request for fluent data transfer between them..like for example request1.pipe(response2)... so whatever data transfer from one clinet is sent to another client ..like streaming proto

Re: [nodejs] error when I use command (npm insatll ) in windows

2012-10-24 Thread Ritchie Flick
Npmjs.org was down for some time, sure you didn't tried then? This message was send from my phone Flick Ritchie On Oct 24, 2012 2:22 AM, "Ben Noordhuis" wrote: > On Wed, Oct 24, 2012 at 1:41 AM, Saeed Alasiry > wrote: > > when I use ( npm command ) s

Re: [nodejs] Node.js with java

2012-10-24 Thread Evangelos Pappas
>From my experience I'd suggest ActiveMQ using Stompprotocol. It's lightweight enough and from java point you use JMS. Yet it depends on your application. On Wednesday, 24 October 2012 00:10:16 UTC+3, Alexey Petrushin wr

Re: [nodejs] Node.js with java

2012-10-24 Thread Angel Java Lopez
Another approach: Call Node.js functions from Java, using dnode https://github.com/substack/dnode On Mon, Oct 22, 2012 at 2:43 PM, amro alfares wrote: > Dear all > i am posting this question after alot of google search > i want to use node.js with my java web project > can any one tell me how to

[nodejs] Re: Abort Trap 6

2012-10-24 Thread Karl Böhlmark
I get this on node 0.8.12 after maybe 24-48 hours. I don't use any native modules. Have you resolved your issue? On Wednesday, September 5, 2012 6:11:44 AM UTC+2, Alex Wolfe wrote: > > I have an app that periodically exits with the "Abort Trap 6" message. > Sometimes the app will run for days wi

Re: [nodejs] Re: Abort Trap 6

2012-10-24 Thread Ben Noordhuis
On Wed, Oct 24, 2012 at 3:14 PM, Karl Böhlmark wrote: > I get this on node 0.8.12 after maybe 24-48 hours. I don't use any native > modules. Have you resolved your issue? Can you open an issue next time it happens and include the output of `backtrace full`? You can turn on core dumps with `ulimi

Re: [nodejs] pipe two http request

2012-10-24 Thread Ritchie Flick
Why can't you use Tcp Sockets? This message was send from my phone Flick Ritchie On Oct 24, 2012 2:15 PM, "chetan dhembre" wrote: > hey i am doing some project in which i need to pipe two client together.. > means i want to pipe two different http req

Re: [nodejs] Node.js with java

2012-10-24 Thread Matt
Another approach, call Java directly from Node using JNI: https://github.com/nearinfinity/node-java On Wed, Oct 24, 2012 at 8:55 AM, Angel Java Lopez wrote: > Another approach: > > Call Node.js functions from Java, using dnode > https://github.com/substack/dnode > > > On Mon, Oct 22, 2012 at 2:4

Re: [nodejs] Abort Trap 6

2012-10-24 Thread Alex Wolfe
I recently was able to ascertain what was causing it, at least at a high level. I am using the socketstream module, which in turn uses the chokidar module. The latter is a wrapper around fs.watch and fs.watchFile. When I disable the socketstream feature that relied on that chokidar (live reloa

[nodejs] Re: pipe two http request

2012-10-24 Thread Bryan Paluch
I did something like this a while ago for a demo, you can set up a server that on a post emits an event for each chunk it receives, and sends it to another clients GET request. The trick is you need to have the one client request their GET before the POST starts. Here is a poor example of this.

Re: [nodejs] Weak references. Does node-weak and other simliar libraries, add significant overhead?

2012-10-24 Thread Fredrik O
Thank you Rick, it was good to know. Just for curiosity, what do you people thought, to emulate RAII within JavaScript for those object which need some clean up? Am I doing it completely wrong? I mean, an exception can easily get thrown in JavaScript and try..catch cannot catch error within cal

Re: [nodejs] Abort Trap 6

2012-10-24 Thread Ben Noordhuis
On Wed, Oct 24, 2012 at 4:21 PM, Alex Wolfe wrote: > I recently was able to ascertain what was causing it, at least at a high > level. I am using the socketstream module, which in turn uses the chokidar > module. The latter is a wrapper around fs.watch and fs.watchFile. When I > disable the sock

Re: [nodejs] Weak references. Does node-weak and other simliar libraries, add significant overhead?

2012-10-24 Thread Nathan Rajlich
I mean try it and find out :) If you run into problems, let us know! On Wed, Oct 24, 2012 at 7:28 AM, Fredrik O wrote: > Thank you Rick, it was good to know. > > Just for curiosity, what do you people thought, to emulate RAII within > JavaScript for those object which need some clean up? Am I doi

Re: [nodejs] Node.js with java

2012-10-24 Thread Evangelos Pappas
IMHO I disagree regarding JNI. JNI has total different philosophy. The combination of NodeJS & Java serves the need for an external I/O Processing VM. The fact that can be implemented doesn't mean that's a good solution. In Most Cases you should combine both via messaging or Interprocess communicat

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Alexey Petrushin
> I suspect you're thinking strictly in terms of lost sales. That's > the smallest of the three issues I see. Yes, lost sales are one > possible problem. Getting your database back into working > order is another possible problem, as both an expense in man > hours and site downtime, with the

Re: [nodejs] Node.js with java

2012-10-24 Thread Matt
Of course. But the OP didn't give any more detail of what he wanted, so I was making sure the circle of solutions was complete. You could use node-java to talk to something like JODConverter for converting open office documents, for example: http://www.artofsolving.com/opensource/jodconverter Mat

[nodejs] Version 0.9.3 (Unstable)

2012-10-24 Thread Isaac Schlueter
2012.10.24, Version 0.9.3 (Unstable) * V8: Upgrade to 3.13.7.4 * crypto: Default to buffers instead of binary strings (isaacs, Fedor Indutny) * crypto: add getHashes() and getCiphers() (Ben Noordhuis) * unix: add custom thread pool, remove libeio (Ben Noordhuis) * util: make `inspect()` accept

Re: [nodejs] Weak references. Does node-weak and other simliar libraries, add significant overhead?

2012-10-24 Thread Marco Rogers
Can you elaborate on "domains just feel wrong". I'm interested in how the domains api comes across. I've expressed my concerns with it in the past. :Marco On Wednesday, October 24, 2012 7:28:06 AM UTC-7, Fredrik O wrote: > > Thank you Rick, it was good to know. > > Just for curiosity, what do yo

[nodejs] Re: [ANN] Node Class Diagram

2012-10-24 Thread Marco Rogers
Very nice. I'll take a look at this when I get some time. :Marco On Tuesday, October 23, 2012 11:06:47 PM UTC-7, shigeki wrote: > > Hi all, > > I'm pleased to announce a class diagram of the Node API is now open to > the pulbic at > > https://github.com/shigeki/node-class-diagram > > This is

Re: [nodejs] Re: npm: version locking in modules

2012-10-24 Thread Isaac Schlueter
https://npmjs.org/doc/shrinkwrap.html On Wed, Oct 24, 2012 at 9:00 AM, greelgorke wrote: > There is mostly enough time for testing, but not enough time to find out > why test break. and if i can ensure, that the breaks are not caused by some > unstable urgent release of a subsubsubdependency, i'

Re: [nodejs] Best AWS lib?

2012-10-24 Thread Stephen Handley
Thanks for the responses and sorry for the delay in responding. Yeah, I'm definitely looking for a boto-style lib with full coverage of Amazon's services so it can be used for automation. Looks like at this point awssum is the way to go. Will make sure to keep an eye on node-plata as that deve

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Murvin Lai
though Mongo is not ACID . however, when i raised that question to 10gen during a training, one of the solutions they suggest is to do it in code with two handshakes for committing data. not pretty but dorable. My suggestion is like that: For DB, split it into two parts. Anything non-transact

Re: [nodejs] Weak references. Does node-weak and other simliar libraries, add significant overhead?

2012-10-24 Thread Bradley Meck
Take it to a different topic if it becomes unrelated also. On Wednesday, October 24, 2012 1:15:49 PM UTC-5, Marco Rogers wrote: > > Can you elaborate on "domains just feel wrong". I'm interested in how the > domains api comes across. I've expressed my concerns with it in the past. > > :Marco > >

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Ted Young
Just some warnings against mongo being a magic bullet: > P.S. Does anyone really estimated how much will be losses in case of some > (0.00...X) transactions lost due to lack of transactional support in mongo? > I mean in stores like amazon - it's not a question, losses are huge, but in > case of

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Alexey Petrushin
I like mongo (although I'd choose to drop its performance and go with ACID instead), but, working with two databases, or do transactions manually (two handshakes, CQRS / event stream, ...) - those are things that You should try to avoid. Use mongo if You like it and it meets the requirements, o

Re: [nodejs] Weak references. Does node-weak and other simliar libraries, add significant overhead?

2012-10-24 Thread Rick Waldron
WeakRefs are on the table for ES6... if someone here wants to write up a proposal (I'm looking at Nate) I will gladly champion it at the next TC39 meeting. Rick On Wed, Oct 24, 2012 at 2:55 PM, Bradley Meck wrote: > Take it to a different topic if it becomes unrelated also. > > > On Wednesday, O

Re: [nodejs] Node.js with java

2012-10-24 Thread Ryan Schmidt
On Oct 23, 2012, at 16:10, Alexey Petrushin wrote: > It's not me who asked, I know node can work with ZeroMQ, so I advised it :). Oh, sorry. You quoted my message, so I thought you were replying to me. Proper quoting is important... -- Job Board: http://jobs.nodejs.org/ Posting guidelines: h

Re: [nodejs] Re: Use of Node / Express / MongoDB for a e-commerce website?

2012-10-24 Thread Alexey Petrushin
> I think there are reasons why mongo is useful, but saving on developer costs is not one of them. When I hear people > argue this position, they usually don't know much about mongo (and a lot of times aren't big on databases in general) Hmmm, I spent a couple of Years working with JEE and Ora

Re: [nodejs] Node.js with java

2012-10-24 Thread Matt
On Wed, Oct 24, 2012 at 3:42 PM, Ryan Schmidt wrote: > > On Oct 23, 2012, at 16:10, Alexey Petrushin wrote: > > > It's not me who asked, I know node can work with ZeroMQ, so I advised it > :). > > Oh, sorry. You quoted my message, so I thought you were replying to me. > Proper quoting is important

[nodejs] nodejs zlib performance

2012-10-24 Thread Vadim Antonov
Hi everybody, I've tried to google about the nodejs zlib performance and didn't find any useful information. I work on the high-loaded API which communicates with multiple backend servers. Throughput on 1 VM with 8 cores is around 200 QPS and for every query application makes up to 50 queries t

Re: [nodejs] nodejs zlib performance

2012-10-24 Thread Ben Noordhuis
On Thu, Oct 25, 2012 at 12:26 AM, Vadim Antonov wrote: > Hi everybody, > > I've tried to google about the nodejs zlib performance and didn't find any > useful information. > I work on the high-loaded API which communicates with multiple backend > servers. Throughput on 1 VM with 8 cores is around

Re: [nodejs] Node.js with java

2012-10-24 Thread Tero Piirainen
On Wednesday, October 24, 2012 5:14:53 PM UTC+3, Matt Sergeant wrote: > > Another approach, call Java directly from Node using JNI: > > https://github.com/nearinfinity/node-java > > On Wed, Oct 24, 2012 at 8:55 AM, Angel Java Lopez > > > wrote: > >> Another approach: >> >> Call Node.js function

[nodejs] Re: Version 0.9.3 (Unstable)

2012-10-24 Thread darcy
unix: add custom thread pool, remove libeio Is it for performance improvements? Is there any benchmark? On Thursday, October 25, 2012 1:11:45 AM UTC+8, Isaac Schlueter wrote: > > 2012.10.24, Version 0.9.3 (Unstable) > > * V8: Upgrade to 3.13.7.4 > > * crypto: Default to buffers instead of binary

[nodejs] Re: Sequelize table issue

2012-10-24 Thread Junyi Yan
Unless I use freezeTableName in each single definition of table, is there a global setting to turn off this feature? 在 2011年12月1日星期四UTC+8下午1时41分12秒,Senthil kumar写道: > > Its simple keep the table name plural like > > module.exports = function(sequelize, DataTypes) { >return sequelize.define("

Re: [nodejs] Re: Version 0.9.3 (Unstable)

2012-10-24 Thread Ben Noordhuis
On Thu, Oct 25, 2012 at 5:44 AM, darcy wrote: > unix: add custom thread pool, remove libeio > > Is it for performance improvements? Is there any benchmark? It's in-progress work but yes, the goal is to make the thread pool more efficient and scalable. It's not there yet though. :-) -- Job Board

Re: [nodejs] Version 0.9.3 (Unstable)

2012-10-24 Thread Ted Young
At node summercamp, https was in heavy discussion. Has the road map become clearer since then? Cheers, Ted On Oct 24, 2012, at 8:50 PM, Ben Noordhuis wrote: > On Thu, Oct 25, 2012 at 5:44 AM, darcy wrote: >> unix: add custom thread pool, remove libeio >> >> Is it for performance improvement