Signals represent a limited form of inter-process communication. When a signal is issued to a process, it will be interrupted and a signal handler will be executed. If there is no signal handler, the default handler will be called instead. This sounds a lot like asynchronous events in Node, and that’s exactly how signals are implemented; using process.on: Typing man sigaction in a terminal will di
I decided to write a little article to discourage an unfortunately common pattern in Node.JS modules (and browser JavaScript, to a lesser extent) that can boil down to these two examples: // A: function myFunction () { if (somethingWrong) { throw 'This is my error' } return allGood; } and // B: async Node.JS-style callback with signature `fn(err, …)` function myFunction (callback) { doSomethingAsy
This document discusses best practices for handling errors and callbacks in Node.js applications. It covers techniques like error delegation, exception handling, error-first callbacks, avoiding nested callbacks, and using control flow libraries. It also discusses deployment strategies like using screen, restarting crashed processes, and innovating with platforms like Joyent, Nodejitsu and Heroku.R
HEADS UP! This article was written for an older version of node. More up-to-date information may be available elsewhere. This was the sixth in a series of posts leading up to Node.js Knockout on how to use node.js. This post was written by 10gen and is cross-posted from their blog. 10gen is the corporate sponsor of MongoDB. MongoDB bridges the gap between key-value stores (which are fast and highl
Node.jsの作者Ryan Dahl氏、来日決定!! 日本中からNoderの皆さんに集まっていただき、Node.jsの更なる発展に向けた礎を築く。 「東京Node学園祭 2011」は、そのような場となることを目指します。 @meso 学園祭 実行委員長 About| 東京Node学園祭について スマートフォンの増加により現実になりつつあるC10K問題や、WebSocketにより実現されつつあるリアルタイムWeb。これらへのソリューションとして世界中から注目されているのが、サーバサイドJavaScriptプラットフォームのNode.jsです。 このたびNode.js日本ユーザグループは、Node.jsの作者Ryan Dahl氏および、Socket.IOの作者Guillermo Rauch氏を招聘し、初のカンファレンスとなる「東京Node学園祭」を開催します。 なお、ファーストサーバ社とJo
Update: We’ve won Node Knockout in the “Completeness” category ! Congrats to the team! How we got there Many people are familiar with the SETI@home project: a very large scale effort to search for patterns from alien civilizations in the ocean of data we receive from the sky, using the computing power of millions of computers around the globe (“the grid”). SETI@home has been a success, obviously n
The secrets of Node's success Why Node.js has caught on while other server-side JavaScript implementations faltered. In the short time since its initial release in late 2009, Node.js has captured the interest of thousands of experienced developers, grown a package manager and a corpus of interesting modules and applications, and even spawned a number of startups. What is it about this technology t
Code Review is a series on DailyJS where I take a look at an open source project to see how it’s built. Along the way we’ll learn patterns and techniques by JavaScript masters. If you’re looking for tips to write better apps, or just want to see how they’re structured in established projects, then this is the tutorial series for you. I was recently looking for something in the source to Express, a
Jul 06, 2011 Node v0.5.0がリリースされました。v0.4系とは異なり、開発版の扱いになっています。node blogに掲載されているChangeLogを超意訳で下記にまとめてみたので、よかったら参考にしてください。間違いもあると思うので、原文もあわせて確認してください。 2011.07.05, バージョン 0.5.0 (開発版) * Windows における IOCP サポートのための新しい libuv バックエンド。非標準のため、--use-uv オプションで有効化することができます * http.cat が非推奨になりました * ドキュメントを更新しました * child_process.fork を追加しました * fs.utimes() と fs.futimes() のサポートを追加しました (Ben Noordhuis) * process.uptime()
Node におけるスケールアーキテクチャ考察(Scale 編)というエントリーを読んで、RedisはPub/Sub型通信をサポートしているという事を知りました。エントリーでも言及されているように、Pub/Subを使えば Node.js + WebSocket サーバをスケールする際に、中継サーバの役割を果たす事が出来るはずです。 そんな訳で実際に Node.js と Redis を使って Pub/Sub の実験を行なってみました。ユーザが別々のNode.jsサーバに接続していてもWebSocketを通してメッセージのやり取りを出来るようにします。 イメージとしてはこんな感じです。 下準備# Ubuntuの場合は apt-get で1発でインストールする事が出来ます。 $ sudo apt-get install redis npmでredisモジュールをインストールします。 $ npm i
[追記] 途中までは Node での複数プロセス起動、プロセス間通信等について書かれていますが、後半は自分が前回の記事 を書くにあたって自分が考えてたことを少し強引に広げて書いた個人的な妄想が多く含まれ、Node におけると言っときながら、後半は Node 関係ない感じになってしまいました。 正直まだ分かっていないことが多いです。変なところをどんどん指摘していただけるとむしろ嬉しいです。 Node におけるスケールアーキテクチャ考察(SSP 編) - Block Rockin’ Codes の続きです。 もともと何となく結論があって書き始めたんですが、書きながら色々調べているうちによくわからなくなりました。 まだまだ調べたらないことがわかったので、とりあえず今わかっているところまで書きます。 結局何がいいたいのかよくわからない感じかもしれないけど、ゴールは SSP のバックエンドの Nod
On this e-book we will analyze what makes Node a different proposal from all that is out there, why you should use it, and how to get started. It starts with an overview but quickly dives into the code, module by module. By the end of this book you should be able to build your own Node service producers and consumers, and also feel comfortable around the Node API and conventions. You will also be
Nodeconf Adventure 2018 July 20th–22nd, 2018 Walker Creek Ranch, CA Tickets on Sale Adventure time Join us at Walker Creek Ranch for an intimate un-conference. NodeConf Adventure is a 3 day event for the whole family. We have a Kids Track and Significant Others track and activities all day and night for the Node community. All tickets to Adventure include meals and some sort of accommodation in ei
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く