Yes, that works pretty well actually, I've used it a lot to synchronize a
small in-memory cache to each process and distribute jobs to workers.
2014-12-09 7:33 GMT-08:00 Ω Alisson :
> if I do something like this on a worker process, wouldn't be effective?
>
> process.on("message", function(m) {
I'm not him, but I've used the split schema pattern before. It helps a lot
in a few cases.
a) You want to provide a full export for the customer, you can dump the
schema really simply.
b) You don't want the serial columns to jump drastically between users.
Like an Order ID.
c) You want to upgrade c
I use node-schedule, it's been rock solid and one of the options is a cron
style time format. I have nothing ill to say of node-cron, just that
node-schedule has worked very well for us.
@Alex - It's very convenient to schedule cache refreshes and monitors with
node-schedule vs regular cron, one l
jsdoc is pretty good, I just setup a project using the docstrap template
here: https://github.com/terryweiss/docstrap. Thought it was pretty
straightforward to get going and looks good.
This blog post was helpful for me when selecting as well:
http://blog.fusioncharts.com/2013/12/jsdoc-vs-yuidoc-v
I ran this code as-is on Ubuntu and was able to see it hitting all cpus,
using weighttp to hit the cluster and htop to monitor cpu usage and
processor assignment.
It appears you may be running this on windows (given your load utility
choice) though, sorry I can't help with that.
-John
On Fri,
When using these embedded databases, like node-levelup, how do you handle
cluster based apps? I'd love to use an embedded database, but also need to
run our express app on all 8 cores of the machine.
I know I can process.send to children & master, but that seems like a
clunky way of interfacing. C
@Adva
It sounds like you're new to nodejs/hosting, and while you could go through
the steps of setting up a vps yourself, you'd probably be better off going
with a PaaS like Nodejitsu, Heroku, or similar. Their guides can walk you
through the process of getting your app up quickly, most have cheap
Restify has a nice throttle plugin, maybe you can adapt that or use the
same concept.
http://mcavage.github.com/node-restify/#Bundled-Plugins
On Wed, Mar 27, 2013 at 8:44 PM, Enver Arslan wrote:
> It uses Redis. I don't have Redis. It is a simple problem, why I have to
> use Redis? Must be a sim
Try this for the html, loads socket.io from a CDN. (Works on my computer...)
var socket = io.connect('http://localhost');
socket.on('news', function (data) {
console.log(data);
socket.emit('my other event', { my: 'data' });
});
On T
@Andreas, I recommend reading this:
http://www.catb.org/esr/faqs/smart-questions.html, it covers how to
approach technical communities with these types of problems. There are
plenty of folks willing to help when you ask the question in the right way,
in the right place.
On Wed, Oct 31, 2012 at 12
Great implementation - it's very snappy compared to Magento, especially in
basket during checkout actions.
I was going to suggest similar to what you I think you're doing, a boring
relational database fronted by nosql.
-John
On Wed, Sep 26, 2012 at 2:19 PM, Vinayak Mishra wrote:
> I feel no s
on linux, or do 1 or 3 on windows? Or do you
> combine them?
>
>
> Den lördagen den 23:e juni 2012 kl. 00:22:53 UTC+2 skrev John Fitzgerald:
>
>> I do the same as Mark, a few cloud servers that I remote into for
>> development. I'm often jumping between a mix of seve
I do the same as Mark, a few cloud servers that I remote into for
development. I'm often jumping between a mix of several Win7/Centos/Ubuntu
machines - to do remote development I use the following scenarios:
1. On either, ssh with console vim.
2. On linux, I'll do a fuse ssh filesystem mount and t
13 matches
Mail list logo