503 karma · joined November 19, 2010
That’s terrible.
Golang produces native code with very good runtime with green threads which makes it very easy to do async programming and write efficient network code. But language won't save you from inefficient algorithms and dumb code of course.
> I love the idea of just serving a production HTTP API from a single go file.
You may have mistaken by single Go file in my service but it is actually a lot of code included spread across several libraries. In order to write this service I had to write my own open graph library, oembed library, html parsing library etc..
I wanted to make an analog of http://embed.ly/code but lost interest in the middle.
I can code difficult logic and all the highload server stuff but when it comes to front end, billing, images etc.. I'm getting bored too quickly.
If someone wants to help me make a business out of this: mdxytop at gmail.com
It is running for more than 2 years now, never failed :)
Golang is pretty stable.
Also the server is behind Cloudflare which caches responses and protects from DDoS, this can be another reason for low RPS to the server.
Regarding reliability: all the code is opensourced and if you want to use the service in production - you can run this on your own server.
General example: http://api.proc.link/oembed?url=http%3A%2F%2Fpage.rest
Youtube: http://api.proc.link/oembed?url=https%3A%2F%2Fwww.youtube.co...
Facebook: http://api.proc.link/oembed?url=https%3A%2F%2Fwww.facebook.c...
I see it as just new functions, not language extension.
A person from nowhere will never became a maintainer of any serious product.
There should be identical blocks of code which I doubt they have. I think by "identically" they mean the same thought/method.
As about immigration - you can trust me, those are not abstract words as I know about this not from press but from my living. Prices on appartments are high due to lots of people from moldova buy appartments here.. and this is due to low utility fees (water, gas, electricity) comparing to right coast.. Of course most of people in region try to immigrate to Europe and Russia, but still there is a bunch of them immigrating to Transnistria, amount may seem small but for our region it's enough to keep appartment prices high enough
Here's no gangsters, no communism. Of course it is not as developed as Chisinau, but far better place to live than the rest of Moldova and Ukraine.
Pensions are much higher than in Moldova, lots of people from Chisinau when they get old buy here appartment and move over.
Questions are welcome. Can make proofs if needed
I've done it in few days. Server can handle 1000s of requests. Does smart things like de-shortening urls, and fetching image sizes based on first 1024 bytes.
It doesn't need to download full URL content in order to get oembed info. For HTML pages it fetches just first 50KB of data, for binary streams - just 4KB (although 1KB should be enough too for most of data).
Also, guys, poll! Guess what hardware is powering the server? :) You'll be surprised. I'll answer in few hours in the thread!
(fork with gh-pages added)