Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
denibertovic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
denibertovic
12y ago
Feel free to ping me if you have any questions. I will do my best and try and answer them if I can.
32.
▲
by
denibertovic
12y ago
Awesome, tnx for the tip! :)
33.
▲
by
denibertovic
12y ago
Indeed. I use Ansible myself.
34.
▲
by
denibertovic
12y ago
At the point where all the other "normal" mechanisms monitoring storing the job on the queue have failed I would suppose I have a far more greater problem on that system. Personally I would not use flags for jobs types, I would mo
35.
▲
by
denibertovic
12y ago
Could be, wavelengths thing I mean. :) I'm not aware of how ruby does it other then hearing about 2 most popular solutions that are used with rails. As for Postgres's PUB/SUB I've replied to the reply that mentioned that
36.
▲
by
denibertovic
12y ago
No, you are not storing the job itself, just a flag that indicates that the job was not done/or even stored. What's more, there really are various ways to handle failure of storing a job on a queue, but in most cases it's jus
37.
▲
by
denibertovic
12y ago
Sorry to disappoint. Flower isn't about a real flower either. :P
38.
▲
by
denibertovic
12y ago
Precisely. Tnx jaegerpicker.
39.
▲
by
denibertovic
12y ago
I think you're missing the point. The Celery (or any task queue really) particulars are very important here, cause you don't want background workers hammering your database if they don't need to. Cause the workers wan't
40.
▲
by
denibertovic
12y ago
Doing non-blocking is tricky, and I'm not convinced that Python's solution are where I'd like them to be on this topic. Also keep in mind that a number of open TCP connections is also a finite number, so you can't really
41.
▲
by
denibertovic
12y ago
Anyone that's interested in Postgres's pub/sub might find this useful: https://denibertovic.com/talks/real-time-notifications/#/ Just slides though. Haven't gotten around to writing a post
42.
▲
by
denibertovic
12y ago
It is true that Postgres supports Pub/Sub but unfortunately the Celery broker driver does not take advantage of this. It would be great if we could get support for it. Nevertheless, just because it has pub/sub doesn't mean it
43.
▲
by
denibertovic
12y ago
Hmm, seems we're talking about 2 things here. If your ajax request requires long task processing and requires you to wait for it than this is not a background task any more, it's done in one of the web server threads, and even if
44.
▲
by
denibertovic
12y ago
More awesome tips. Thank you.
45.
▲
by
denibertovic
12y ago
Noted, the wording is a bit contrived i give you that. I like Redis as well, it was mentioned in the comments here a few times. Good thinking about pointing out reloading btw. Tnx.
46.
▲
by
denibertovic
12y ago
Ah no, you got that one perfectly I just didn't understand what was meant at first. Fixed. Thank you.
47.
▲
by
denibertovic
12y ago
It's somewhat akin to a Django vs. Flask discussion really. But yes for more light weight stuff I too would recommend rq.
48.
▲
by
denibertovic
12y ago
In general using an AMQP for the result storage is somewhat of a bad idea i think. But yes I agree about the ignoring results part seeing as most tasks I've seen in the wild don't return anything at all. Hence #6 in the post.
49.
▲
by
denibertovic
12y ago
With container solutions like Docker and prebuilt images the setup part is kinda eliminated. Although I don't remember having any special configuration issues with RabbitMQ as well, it just works TM. That's always nice right? :)
50.
▲
by
denibertovic
12y ago
Redis is still not an AMQP, but yes Redis's Pub/Sub works quite nicely. Out of all the brokers celery supports I'd recommend only RabbitMQ and Redis to people.
51.
▲
by
denibertovic
12y ago
Awesome stuff, tnx for these. :)
52.
▲
by
denibertovic
12y ago
Not really, that's just the name of the actual task itself ie. "def my_taskA(a, b, c)".
53.
▲
Celery – Best Practices
(denibertovic.com)
174 points
by
denibertovic
12y ago
|
103 comments
54.
▲
by
denibertovic
12y ago
Ruby doesn't have functions as first class citizens. Python does.
55.
▲
by
denibertovic
12y ago
I'm using docopt....It's really nice with it's automagicness. But for some stuff it's just not enough, too unflexible. I'm really excited about click.
56.
▲
by
denibertovic
12y ago
The part that bothers me is that is's all shell scripts... Why not use a modern provisioning tool now-a-days? This looks way more interesting to me: https://github.com/al3x/sovereign
57.
▲
by
denibertovic
12y ago
This article really hits the nail on the head. In the comments, many people confuse layers of indirection with dependency injection. Those are 2 separate things, you can have dependency injection and not have 100 layers of indirection that
58.
▲
Setting up systemd on Debian in 10 minutes
(denibertovic.com)
2 points
by
denibertovic
13y ago
|
0 comments
59.
▲
by
denibertovic
13y ago
We have a SGI machine (wights like ton) in our shop. Can't remember the exact model but I remember how someone mentioned it's the exact model used for animation in the movie....we use it mostly as a chair XD
60.
▲
by
denibertovic
13y ago
Why does every definition of new future super cool messaging system imply "immediate". I quite don't like that. Not everything needs to be a chat and immediate.
More ›