vaffel / react-components

Searchable repository of React-components
http://react-components.com/
MIT License
164 stars 22 forks source link

Improve NPM/Github-polling #1

Closed rexxars closed 9 years ago

rexxars commented 10 years ago

Currently there is a simple setInterval doing some fetching from NPM/Github. I don't like this. It will create trouble when we try to up the number of procs running the server, as well as being sort of ghetto.

Maybe we should make this a cron job which either writes data to disk or to memcached or similar.

brigand commented 9 years ago

Are you open to something with a real database and message queue?

It's a very simple, scalable (n processes, n machines), worker stateless solution.

rexxars commented 9 years ago

Absolutely. I've actually done quite a bit of changes to the process, but have not had time to work on it for a while. It's a bit simpler than what you are proposing, though, but it's a starting point.

Let me spend an hour or two on this this evening, and I'll see how far I get. Thanks for the interest - I'll get back to you.

rexxars commented 9 years ago

OK, I had a look at what I had done earlier and it wasn't really working. LevelDB was not a great choice, since you would be reading and writing to the files from separate processes and whatnot.

I decided to go for Redis, instead. Hopefully things should be more stable from now on. Implemented in #23.

Thanks for the interest, @brigand - you made me finally get this out of the way :-)

brigand commented 9 years ago

Awesome, and I love the site, it's very helpful for both publishers and users.