0

Is there anything that is similar to PHP's APC (Alternative PHP Cache) for Node.js?

So every Node.js thread running on a server can access the cache. I know the architecture of Node.js may not easily or at all allow for an APC like cache.

I know we can of course run memcache on each server as well to create a server level cache but was curious of there was any alternative.

thanks

3
  • What kind of threading are you using? Commented Jun 6, 2012 at 14:10
  • using cluster to run 1 thread per core Commented Jun 6, 2012 at 19:02
  • vert.x apparently has intraprocess communication. Yeah its not node but it's very similiar Commented Aug 6, 2012 at 16:11

2 Answers 2

1

Node is trying to keep only the basic stuff in its API, so you won't find such a thing "baked in" (for example WebSockets isn't included in Node core, but in external modules).

You would need to create such a cache layer using something like Redis or Memcached.

P.S. You should better refer to Node processes instead of threads, since you don't have to handle threading stuff with Node.

Sign up to request clarification or add additional context in comments.

1 Comment

appreciate it. yeah we already have memcache but was hoping for something just a touch faster and something we don't have to monitor like APC. guess we'll just have to stick with memcache on each server for now
0

I don't know if this module helps at all. I can't guarantee its' reliability and I never kept my promise to do a Windows API as I'm a bit of a linux snob (as in nothing Microsoft comes near my PC)

https://github.com/dazhazit/node-ipcbuffer

It implements a simple byte buffer between processes. You could probably build any mechanism you like on top of it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.