Skip to content

u/redditacct

In this archive from Jan 2009 to Jan 2013

1
posts
66
comments
0
media
211
score

List in redis is fast and easy, no need to use pub/sub, just do bpop. You can even just have the key for a big db record in redis and then do all the status tracking and whatnot there - that gives you the best of both. Most people have lots of info that they want to keep about an entity, so you have your records in a db with a few fields for processing step number, who is working on it, status, etc. Then you throw the id in a redis list, have the workers bpop the id, update the status field in the db and the "who is working on this record" field and start chugging along. Update the "step number" field to have a fine grained way to track where/when workers are getting hung or are dying.

2 points

to carry a pizza with icecream toppings from europe to america.

Wait, are you saying that you are withholding information about icecream toppings for pizza? Delivered?
You bastard.

The sms thing is reposting/retelling that is a 5 year old story about sms costs.
/r/karmaconspiracy researches these and similar important topics.

1 points

Very good sir. Checking, one moment. Ah, yes I have an opening at the "this and all benchmarks suck" circle and one at the "development speed is the most important thing and fuck you, because AWS" circle.

Or if perhaps you prefer something more exotic, we have a "php is the wrong answer, period" circle in a private room, but the pricing for that is more, shall we say, 'exclusive'.

2 points

This was a heartbreaking and non-theoretical question in the aftermath of the Oakland Hills firestorm. Many homes were burned so completely that nothing remained at all - nothing, I've never seen anything like it - cars were burnt to the frame, cement foundations were all that was there for block after block, afterwards addresses were spraypainted on foundations or burnt out cars because you couldn't really tell where a given address was. I drove through there a couple days after, it was indescribable. It was the time in my life that I most wish I had a video camera. http://en.wikipedia.org/wiki/Oakland_firestorm_of_1991

Some people escaped with nothing, but lived - winds were gusting over 70 miles an hour, firefighers describe trees "exploding", narrow streets were blocked, some people literally ran for their lives. This was pre-web so no one had family photos stored online, etc.

1 points

I like to have a similar structure for jobs, regardless of where/how they are managed - seeing the failed jobs in the running "state"/queue (I even have the workers update the step they are on, so I can see where things are failing) - allows me to watch for patterns in the failures, it is mostly 1 worker or one file is failing over and over or workers on a certain machine or set of machines, etc.

1 points

I wasn't terribly clear but what I was saying is -

We were able to take redis and a (now) extremely old version of https://github.com/nrk/predis/ predis (so old that it was just a single file and didn't even include a version number anywhere)

And using that very old, very minimal php lib and just blpop/etc, we are able process millions of queued items per week - php workers placing work in the queues and perl and php workers grabbing the work and processing it. No problems at all, very low overhead in terms of code size, runtime memory/cpu utilization, etc.

So you don't need kestrel, pub/sub, JMS, ActiveMQ/0MQ, RabbitMQ or any fancy, big, complex systems to use redis to do alot of "useful" work.
There tends to be this gravitating towards making sure you have a bunch of "machines that go ping"
http://en.wikipedia.org/wiki/Monty_Python%27s_The_Meaning_of_Life

I am trying to promote some form of software/IT minimalism

1 points

Me [too] - without using pub/sub or another crap on top of it.

Still using the one file version of predis? lib - so old it didn't have a version string in it. Had to diff it with old commits on github to figure out what version it was.

1 points

There was a kickstarter project (or similar) trying to get money for some design on a poor area's buildings in Oakland or LA?

One of the other, extremely interesting to me, projects was somewhere in South/Central Amerca there is an area that does not allow commercial billboards or signage at all.

1 points

SPC has that exact description:
Sony Pictures Classics (SPC): Specializes in acquiring distribution rights to independent and art films as well as producing lower-budget productions geared to limited audiences.

Look at that, just what veroEgiusto described...

Also:
Sony Pictures Releasing Sony Pictures Releasing International

More examples are to be found, if looked for.

1 points

The making of a South Park episode show was a goldmine of ideas for how to get stuff done. Having a time limit seemed to be a key for them to stop the writing process.

I find detaching your thinking from linear, reality based thinking for animated stuff is really hard - I am constantly surprised at the creativity of animated shows.
One that got me was the episode of SP when the kids take over the town and voice messages are delivered in empty canning jars - I was like - how do you think of that. Family Guy when Peter and the kids create an animated series with ducks...

3 points

It has no concept of sitting idle waiting for something to happen.

Someone better tell my 100s of php processes that are waiting for redis to tell them there is a new piece of work to come their way, they must be using "secret CPU" because they aren't using any CPU I can measure - but then neither are perl ones.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.