Better HN
topnewbestaskshowjobs
Log inSign up

Bogdanovich

75 karma · joined Jul 27, 2015 (11y ago) · 25 submissions

Submissions

comment 8y ago · link · parent

Not all government officials and police officers are the same. For example Magnitskiy scandal in Russia.

https://en.wikipedia.org/wiki/Sergei_Magnitsky#Exposing_the_...

TL/DR: police had given the materials taken during the police raids to organized criminals, who used them to fraudulently reclaim $230m of the taxes previously paid by the company.

comment 8y ago · link · parent

Not all government officials and police officers are the same. For example Magnitskiy scandal in Russia.

https://en.wikipedia.org/wiki/Sergei_Magnitsky#Exposing_the_...

TL/DR: police had given the materials taken during the police raids to organized criminals, who used them to fraudulently reclaim $230m of the taxes previously paid by the company.

comment 8y ago · link · parent

Not all government officials and police officers are the same. Have you heard of Magnitskiy scandal in Russia? TL/DR: police had given the materials taken during the police raids to organized criminals, who used them to fraudulently reclaim $230m of the taxes previously paid by the company.

https://en.wikipedia.org/wiki/Sergei_Magnitsky#Exposing_the_...

comment 9y ago · link · parent

"Building out autonomous technology and having global network is a huge advantage. Because the issue with autonomy and any software, is that you've got these edge cases [...]. If you have a network live and you developing autonomy, it's not gonna go from 0 to 1, it's gonna be hybrid networks, you can answer certain calls with autonomy (the weather is good, the roads are main line, there is no traffic, no accidents, that can be served with autonomous vehicle), versus another ride that will have to be served by person."

https://youtu.be/Mo2-4sXYZxU?t=29m37s

comment 9y ago · link · parent

It is dangerous. This guy's (Alexey Navalny) brother is in jail on a fabricated lawsuit as a hostage. Alexey himself was also convicted guilty and the only reason he personally is not in jail is because he will only get more rating points from being a political prisoner.

There was a massive smear campaign against him on all major government controlled mass media where they were blaming him to be an US agent and also a corrupt person.

The only reason Putin has good approval rating now is because he managed to convince the majority of TV owners in US conspiracy.

And Ukraine crisis, sanctions, ISIS, and oil price drop did actually convince majority of Russians in that. So as long as people blame US Putin is safe.

One similar thing I see here in US: when facts are too painful and too obvious - blame another country.

comment 9y ago · link · parent

Any significant Russian leak will be instantly picked up by the western media.

There is a lot of leaks on Russia in the media. No one actually cares anymore since it's mostly corruption stories and everyone is already knows there is a lot of corruption there. Here is the last corruption story on prime minister Medvedev: https://navalny.com/p/5255/

comment 9y ago · link · parent

It's US pretends to be the world police and not the Russia.

comment 9y ago · link · parent

He hiding from the United States in Ecuadorian Embassy for many years. No surprise he is biased against US. Unites States pretends to be the country that does 'good' things, and blames all other countries that do 'bad' things. That's why Snowden is so painful, and Assange is so painful.

comment 9y ago · link · parent

I don't really get the comparison with Pony Express part. As you said they shut down because of superior technology (transcontinental telegraph). So the superior technology to Uber and Lyft will be self-driving cars or teleportation.

The second point is that Uber is not trying to scale driver's earnings but the availability of the service for your every day needs while still making sure drivers can make a living. How many people were commuting to work via taxi before Uber and Lyft? How many people do that now? Making uber ride affordable for every day needs and maintain a certain level of service and customer support that's where they were scaling.

comment 9y ago · link · parent

They've been trying to sell the company earlier without any success: https://www.nytimes.com/2016/08/20/technology/lyft-is-said-t...

comment 10y ago · link · parent

This regulation was probably a good reason for uber to sell its business as it protects didi's market share

comment 10y ago · link · parent

From bbc.com:

"The deal with Didi Chuxing comes just days after China agreed to provide a legal framework for taxi-ordering apps. Both Uber and Didi have welcomed the decision, having previously operated in a legal grey area in the country. While the apps are widely popular, they have undermined business for normal taxis and have been met with protests by cab drivers. The new rules will take effect on 1 November and will, among other things, forbid such platforms to operate below cost."

New regulation prohibits ride subsidizing. Meaning no way for Uber to increase its market share by subsidizing rides after November 1st.

comment 11y ago · link · parent

It would only trigger compaction if sst tables have overlapping keys. And if you only write new items, goleveldb implementation would just create 3.7Mb sst tables by default without trying to merge them into bigger chunks (what's the point? they are all sorted and non-overlapping). When you have queue consumption workload it would start merging tombstones with sst tables and since tombstones are also in sorted order it would not pick up multiple sst tables at a time, and just either completely or partially remove stale sst files. I added some more benchmarks including queue packing with 200M messages of 64 byte size, and benchmarks of consumption of 200M messages. The speed is sustainable. https://github.com/bogdanovich/siberite/blob/master/docs/ben...

comment 11y ago · link · parent

I added some more benchmarks including packing with 200M small 64 byte messages (20Gb) and consumption of that queue. There is no slowdown because of mass delete. https://github.com/bogdanovich/siberite/blob/master/docs/ben...

comment 11y ago · link · parent

There is no benefit in that except faster startup time. As a downside you'll get a lot head/tail db keys updates.

comment 11y ago · link · parent

In case of reliable fetch failure each consumer group will keep it's own queue of failed deliveries (persisted on disk), will check that queue and serve these failed items first.

comment 11y ago · link · parent

Right now it doesn't store any consumer offsets. And you can get either at-most-once or at-least-once guarantees.

But I found the idea of multiple consumer groups per queue very interesting. So basically you would still be able to fetch queue messages as you can do now and it will delete dequeued items, but you would also be able to use something like 'get queue_name:consumer_name' and it will create a consumer group internally with a stored offset and will serve messages using that offset. In case of reliable read failure each consumer group will keep it's own queue of failed deliveries, will check that queue and serve these failed items first. If source queue head has changed and became larger then consumer group offset, then consumer group offset would just start from the source queue head.

This way you can get Kafka-like multiple consumer groups per queue as an additional feature.

comment 11y ago · link · parent

It's really simple. Each queue is a separate leveldb database on disk. Messages are stored as key/value using incremental ids. Head and tail of the queue are kept in memory and get initialized on startup via db scan.

comment 11y ago · link · parent

Yes, goleveldb was chosen because it's a ready to use library with a decent write and read performance, and no external non-Go dependencies. It can also be used to store multiple consumers offsets in future.

Regarding provided guarantees, with simple 'get work_queue' reads it provides at-most-once delivery. With two phase reliable reads 'get work_queue/open', 'get work_queue/close' it provides at-least-once delivery (although message is kept in memory on server during a reliable read and will be lost if you SIGKILL siberite. On SIGTERM and SIGINT siberite will gracefully abort the read and save the message).

comment 11y ago · link · parent

Yes, as id/value with autoincrement key. Head and tail ids are kept in memory and get initialized on startup via leveldb database scan.

comment 11y ago · link · parent

Reliable fetch is a feature, not a protocol requirement. You can use simple 'get work_queue' command to just get a message, or you can use 'get work_queue/open', 'get work_queue/close' - two phase fetch if you need a reliable fetch. You can also use 'get work_queue/close/open' command to acknowledge previous message and read a new one.

comment 11y ago · link · parent

You can have large queue sizes (larger than RAM size) and siberite would still consume small amount of resident memory. You basically don't need a separate server with decent amount of memory for it. You can also can get benefit from two-phase reliable fetch - if your client gets disconnected without confirming a message, the message will be served to another client (very convenient if you use amazon spot instances for your workers).

23.

Siberite: A Simple LevelDB-Backed Message Queue in Go(github.com ↗)

77 points · by Bogdanovich · 11y ago · 35 comments

24.

Siberite: a simple, lightweight, leveldb backed message queue written in Go(github.com ↗)

3 points · by Bogdanovich · 11y ago · discuss

comment 11y ago · link · parent

If server is compromised, web app source code would probably change to something else.