Better HN
topnewbestaskshowjobs
Log inSign up

pixelmonkey

6,134 karma · joined Oct 5, 2007 (19y ago) · 831 submissions

Founder of PX Systems, which ships a daily developer tool to go from code to cloud cluster in seconds. More info @ https://px.app

Formerly the founding CTO of Parse.ly. Coding in: Python, JavaScript, Zig. Pleased to be a Pythonista and UNIX lover.

Parse.ly was acquired by Automattic (creators of WordPress.com) in February 2021; more here: https://www.techmeme.com/210208/p12#a210208p12

My essays & technical blog: https://amontalenti.com

My AngelList profile: https://angel.co/p/amontalenti

My occasional tweets: https://twitter.com/amontalenti

Submissions

comment 10y ago · link · parent

Buffer is a fully distributed (remote) team. The money they save on offices, they spend on travel.

Do you think an office for 100 people would cost less than $400K/year? (I know it wouldn't in NYC.)

See my notes on this here:

http://pixelmonkey.org/pub/distributed-teams/notes/#mixing-d...

comment 10y ago · link · parent

@dkfp Apologies for that, I did not mean to mis-characterize. PyKafka also goes from 0.8 => 0.10. I had assumed kafka-python recently switched to be 0.9-only due to all the changes related to consumer groups.

comment 10y ago · link · parent

My team at Parse.ly also did a benchmark comparing pykafka (pure Python) to pykafka with the librdkafka C extension enabled. That C module is clearly a huge win for Kafka consumer/producer performance on Python and other dynamic languages.

http://blog.parsely.com/post/3886/pykafka-now/

Unfortunately, as the OP illustrates, there are now 2 widely-used Python + Kafka drivers (pykafka and kafka-python), and as of recently, a third, confluent-kafka-python, which is a thin wrapper over librdkafka.

The reason there's all this fragmentation is because Kafka was quite the moving target for non-JVM languages for the past three years. We have used it in production since Kafka 0.7, so we've had to live through it all blow-by-blow. I'm hoping that with Kafka 0.10 recently released, we can finally unify the community around a single driver (somehow).

comment 10y ago · link · parent

The Google AMP CDN is provided as a "convenience" to publishers, but publishers can ask Google to link instead to their own CDN. I think because the project is early, right now this can only be done via a manual request to Google. But it's going to be required downstream for publishers to synchronize their visitor data appropriately, recognize subscribers, and serve ads.

(disclosure: my company, Parse.ly, is an analytics launch partner for AMP.)

comment 10y ago · link · parent

First of all, Chris is great. I'd know: I hired him. (I'm Parse.ly's CTO.)

But I will mention that we were not always on AWS. Indeed, I hired Chris at a moment in our company's life when we were growing a bit too fast and still had a "snowflake server" setup in Rackspace Cloud. Served us well for the first year of revenue, but not so well given our growth rate. One of his first jobs was to move us from snowflake to proper config management. Then we made an 18 month pitstop in colo before adopting AWS.

I think what the blog post fails to recognize is that there is "commodity AWS use" and then there's "AWS platform use." For example, at Parse.ly we use Route53, Cloudfront, ELB, EC2, S3, RDS, and EMR.

The first 5 are basically commodity services. DNS, CDN, load balancer, VMs, backup.

Whether you use Rackspace, DigitalOcean, or your own colo, you'll need to figure something out in each category to deploy a real webapp. (Or, accept the devil's bargain of a PaaS.)

The last two services, RDS and EMR, are basically AWS-specific value-adds that saves our team time. We used to run our own Postgres EC2 node, but meh, why bother. Our SQL DB is small, and RDS handles a lot of things for us. We also used to run our own Spark clusters (using spark-ec2), but in June 2015, Spark got EMR support, so again, that saves us time/money. We actually breathed a sigh of relief when that came out, since we were essentially building Spark EMR ourselves with boto.

Spot instances and reserved instances are very neat cost optimizations at scale. But complex.

We adopted RDS/EMR hesitantly because of the "lock-in" they represent. We could definitely run without them. I don't think I have interest in the other 70 AWS services, mainly because I hate lock-in, I like open source, and I want to Keep Things Simple. (So Chris stays sane!)

AWS is definitely more complex than DigitalOcean. But I think running production web apps in the cloud is "simply complex", no matter which provider you use.

I also think the OP has a good point, which amounts to, "premature scaling is the root of all evil". Parse.ly may run on 200 EC2 nodes across multiple regions & AZs today, but our first prototype ran in a single 1U rackmounted server I built myself and snuck into a friend's server cage (2009). It's important not to waste time on "devops" when you are still figuring out what the heck your startup is even supposed to be doing. If I wasted time on that in the early days, we simply wouldn't be here.

546.

Newspaper vs. Web publishing jobs in US, 1990-present(bls.gov ↗)

4 points · by pixelmonkey · 10y ago · discuss

comment 10y ago · link · parent

Interesting business model around a F/OSS project:

https://databricks.com/try-databricks

https://databricks.com/product/pricing

So, they give you a 6GiB of RAM "micro-cluster" (presumably in AWS) for free, along with a notebook environment for playing with Spark's API, learning resources, and a way to share your work. But if you go from DCE to "production", you pay $99/month as a license fee for up to 3 Spark users, plus $288/month for every AWS node you run full-time in your Spark cluster.

Presumably, Spark is able to treat the "free" 6 GiB micro clusters of the community edition as a customer acquisition cost (VC-funded loss leader) for eventual pro users, who, if they work at companies with huge data processing needs, might work out to thousands of dollars per month of recurring revenue.

comment 10y ago · link · parent

Genuinely curious: when you say "it brings enormous benefits to a huge class of queries that are common in timeseries", what are you referring to, exactly?

I run Cassandra in production and I love its operational simplicity, scale-out design, and write performance. But I think its support for time series is perhaps over-hyped. To me, it seems the only queries you can run in Cassandra is a key lookup (partition key row get) and a column slice (partition key row get filtered by an ordered range of columns). This allows for a certain time series use case e.g. where each row represents exactly one series, and where the only thing you want to do with a series is to get its raw values. But it doesn't allow for many of the things I personally think of when I think about "time series queries", e.g. resampling, aggregates, rollups, and the like.

comment 10y ago · link · parent

Whether to display pricing on the website is something we debated in the past, and continue to debate. (Your comment may wake up the debate for me.)

Pricing for analytics services (in the marketplace) is all over the map. Google picked $150K/year as the price for GA Premium because that's the low end of an Adobe Analytics contract, who is the market leader. We're typically cheaper than existing Adobe/GA contracts. Non-competitive "event analytics" companies like MixPanel and Heap have variable per-event pricing that would break the bank for the customers we serve. We have a bit of an aversion to per-event pricing because it feels like "punishing customers for success".

Meanwhile, per seat pricing, though attractive on the surface and popular in the SaaS segment, has several concerns in our space. First, we want customers to feel free to hand out access to our platform: part of our value proposition is democratizing access to analytics data. So we don't want "stingy seat quotas" typical with tools like Salesforce. Second, for an analytics tool, seats are a bit easier to "hack" for a pricing model -- though our dashboards can be customized per user, a single shared account can access all the data. Meanwhile, our costs don't scale with seats, but with site traffic/users instead.

For these reasons, and more, we've settled on "tiered pricing". Roughly speaking, our service is offered in three tiers. Each tier supports a larger class of site (more monthly uniques), which also bestows more features (e.g. more data retention in higher tiers). To work within the budget constraints of some companies, we will discount tiers while removing cost-affecting features, e.g. maybe you are in the highest class of site, but we disable API access and limit data retention. Because this is a tad more complex than a pricing page could express easily, and also because we think the value of the product comes through best in a guided demo, we made the decision to hide pricing and instead responsively provide demos on-demand.

So, the tl;dr is, pricing, and the display of it, is definitely something we think about, and we have (IMO valid) reasons for not displaying pricing right now, but you make a fair point: if Musk can price his rockets publicly, maybe we can figure something out, too :)

comment 10y ago · link · parent

Data ownership in GA is a "gray area" that becomes less gray if you pay $150K/yr for "GA Premium".

Google has mixed incentives in running its free analytics service. It gets web-wide analytics data, it uses data to help it sell more AdWords to customers, and it integrates GA with other services, like their display advertising products (DFP, etc.)

From a practical standpoint, you don't "own" analytics data when a) you can't easily access it in raw form and b) the SaaS provider "leaks" your data to dilute its value to you. We address (a) and (b) directly through our products and public data privacy stance. See this blog post for our public view on analytics data privacy:

http://blog.parsely.com/post/3394/analytics-privacy-without-...

comment 10y ago · link · parent

Piwik is a great project, but it tends not to work well for handling sites with millions of events per day. Your MySQL table starts to bust at the seams pretty quickly.

For big sites, you'll want that event data in GiB's of plain raw logs that you can bulk load into tools like BigQuery or Redshift for analysis.

My team has built/delivered a SaaS web content analytics platform for the past few years called Parse.ly. We instrument pageview events (like Google Analytics) automatically, and we also instrument time-on-page using heartbeat events. We collect 50 billion monthly page events for over 600 top-traffic sites, and display it all in a real-time dashboard.

To emphasize that our customers own the data they send us, we recently launched a Raw Data Pipeline product:

http://parse.ly/data-pipeline

Basically, we host a secure S3 bucket and Kinesis stream for customers, and deliver their raw (enriched) event data there. From there, they typically load it into their own BigQuery or Redshift instance, or they analyze pieces of it directly with Python/R/Excel/etc.

Our customers tell us this strikes the right balance among data ownership, query flexibility, and hassle-free infrastructure.

552.

On the Timing of Time Zone Changes(codeofmatt.com ↗)

3 points · by pixelmonkey · 10y ago · discuss

comment 10y ago · link · parent

We did run our own colo for about 18 months from 2012-2014. You are right: dedicated hardware is cheap. It saved us some money for awhile. We used Dell instances not unlike the one you spec'ed.

But even when we ran our own colo and hardware, we couldn't do all of our processing on a single node.

Also, in 2014 the business became critical enough that even if we could run everything on one node, we wouldn't want to risk it. So even when we had dedicated hardware, we still had to run Storm to spread the load onto multiple nodes.

The processing we do in real-time these days lights up over 300 EC2 vCores to 70%+ utilization during peak processing hours. A nightly job we run using pyspark lights up about 3x as many cores to near-100% utilization for several hours. And jobs we run during schema changes or backup restores can use more than 3,000 cores at once to churn through hundreds of terabytes of data.

I know it's very easy to say "YAGNI" to tools like Storm/Spark, and in most cases, I am with you. But when you outgrow the alternatives, as much as I'd love to just "throw a single machine at it", it simply isn't an option. YAGNI doesn't apply when you've exhausted all alternatives!

comment 10y ago · link · parent

We use it for real-time web/content analytics. You can see our product tour @ http://parse.ly/tour.

Other examples of "common" steaming data with real-time use cases:

- Twitter firehose

- Network packet analysis

- Financial market data

- Device and sensor data

comment 10y ago · link · parent

It's always a valid question -- when trying to scale to handle large data volumes, it's always worth trying to scale "up" (bigger single machine) and "in" (faster code) before scaling "out" (more machines).

In our case, we had pushed the limits of the largest EC2 box we could find. We have to keep up with tens of thousands of events per second, and do non-trivial amounts of CPU processing on each of them. Whether Python, Java, C++, or assembler, it wasn't going to happen on a single box. We proved this to ourself by getting the biggest box we could and rewriting the hotspots of our code in Cython. It still wasn't enough.

comment 10y ago · link · parent

Very promising IMO. Lots of new stuff going on in their 'distributed' project:

- https://github.com/dask/distributed

- http://matthewrocklin.com/blog/work/2016/02/17/dask-distribu...

comment 10y ago · link · parent

That's an interesting question. Unfortunately I haven't had a chance to evaluate Flink in-depth, it being relatively new.

comment 10y ago · link · parent

If you're a Python user, I gave a talk at PyData called "Beating the GIL with Python" that covers all the tooling for parallel computing in Python, from the simplest (e.g. multiprocessing) to the more complex (Storm/Spark), with many tools in between, and what the trade-offs are. That may help you out.

https://www.youtube.com/watch?v=gVBLF0ohcrE

The rough summary is, if you need to do distributed multi-node computation with very low latency -- that is, end-to-end data processing time measured in millis or seconds -- then Storm will help you out. The "competitive" product in open source right now is pyspark + Spark Streaming.

The benefit of Storm is that it is an older (more mature) project with many production deployments. My team at Parse.ly wrote the open source Python + Storm integration libraries, pystorm and streamparse, which help Python programmers make use of Storm for large-scale stream processing: https://github.com/Parsely/streamparse. We also wrote pykafka, which is a Kafka client for Python: https://github.com/Parsely/pykafka -- these projects are related since Kafka is often the streaming data source used as the input to a Storm topology.

comment 10y ago · link · parent

Guido van Rossum, the creator of Python, wrote a web crawler as a motivating example for asyncio. You can find the code for it here:

https://github.com/aosabook/500lines/tree/master/crawler

And a detailed post about its design, co-written with A. Jesse Jiryu Davis, here:

http://aosabook.org/en/500L/a-web-crawler-with-asyncio-corou...

comment 10y ago · link · parent

I wrote a similar kind of style guide for Python.

https://github.com/amontalenti/elements-of-python-style

"Elements of Python Style": goes beyond PEP8 to discuss what makes Python code feel great.

Looking forward to reading Elements of Clojure. Python is my primary language but Clojure is my hobby language.

comment 10y ago · link · parent

I think there's a straightforward difference between a fringe office perk of marginal value (like free soda) and a form of direct compensation (like paid time off, options, and salary), and I think it's important for employers to distribute the latter based on fitness for job, market rates, and employee value, rather than on arbitrary life choices -- at least wherever possible.

comment 10y ago · link · parent

But nothing you list there is a reason for parental leave. The concept of parental leave is to spend time taking care of a new child while adjusting to the changes of parenthood.

Companies could choose to have "puppy leave" for when employees choose to adopt newborn puppies. Choosing to have a dog (or not) and choosing to have a child (or not) are life choices about time and money investments in taking care of another being, and in the right circumstances they are choices! I imagine a company with a puppy leave policy (however absurd on the surface) would cause jealousy in coworkers who choose to have children, instead. And, rightfully so!

One can not "pause" parentship, it is true. But one can and should choose parentship in most circumstances, and one should not expect an employer to provide special relief from all its obligations, financial/time/otherwise. Employers should instead provide adequate comp and leave to all its employees, regardless of their life choices.

It is ultimately about fairness and a rule that says employees deserve what they earn and don't get unreasonably special treatment for choices that are, frankly, none of the company's business.

comment 10y ago · link · parent

What a bizarre comparison. People do not choose to become sick -- at least not usually!

One would hope that in a modern society, most people choose to have children, although it is true that sometimes becoming a parent can happen outside the realm of choice. Even then, though, the comparison falls down, as extended leave due to sickness is usually covered by disability insurance rather than by employers. Company policies cannot possibly cover every life circumstance but one hopes that over time companies who value their employees offer (fair) policies that make work a little more compatible with the common circumstances of life that tend to be out of the control of employees.

comment 10y ago · link · parent

There are actually companies that have a policy like this so that time off is granted to long-term employees who do not have children, while using the same time off as additional maternity/paternity leave people can "use early" (& above the state-mandated 2 weeks of parental leave) if life circumstances end up with them having a child earlier. I know this because I run one such company and helped develop the policy -- the company is http://parse.ly btw :)

We call it a "sabbatical", and it is five weeks of paid leave, meant to be used all at once after 4 years at the company, or used early by parents when they have children.

The Etsy policy of 26 weeks is certainly generous but honestly quite difficult for a small startup to offer. A big company like Etsy has a much smaller probability that several people on leave at the same time means an "entire department" is no longer staffed, whereas that would be a real possibility on our small team. We want to be fair to parents and non-parents alike, but we have to keep the lights on!

comment 10y ago · link · parent

Let's chat by email. Maybe talking to another CTO who is running a post-Series A startup and who is roughly your age with a similar background (and who has the exact same concerns) will let us figure out a plan out of the madness.

http://pixelmonkey.org/contact

comment 10y ago · link · parent

Parse.ly - http://parse.ly - Fully Remote - Full-Time

We are hiring a software engineer to work on our real-time analytics dashboard. Pythonistas and JavaScript hackers especially desired.

On the company: We've built a real-time content measurement layer for the entire web.

Our analytics platform helps digital storytellers at some of the web's best sites, such as Arstechnica, New Yorker, Mashable, The Next Web, and many more. In total, our analytics backend system needs to handle over 50 billion monthly events from over 475 million monthly unique visitors.

Our entire stack is in Python and JavaScript, and our team has innovated in areas related to real-time analytics, building some of the best open source tools for working with modern stream processing technologies. Our UX/design team has also built one of the best-looking dashboards on the planet, using AngularJS and d3.js. You can see some screenshots: http://parse.ly/tour

Our distributed team is best-in-class and we happily skip commutes by working out of our ergonomic home offices. Here's a photograph of mine running two full-screen Parse.ly dashboards on my monitors: https://flic.kr/p/v1NZ73

We are currently looking for software engineers to help us build the best real-time analytics dashboard the world has ever seen. The only requirement is some experience in Python/JavaScript. Bonus points for an interest in information visualization, Edward Tufte, and d3.js. To see an example of how we work, check out the blog post, "Whatever It Takes": http://blog.parsely.com/post/46

Apply now by sending a CV/website, github link (if available), and 1 paragraph intro to work@parsely.com. Let us know what part of the position interests you, or point us toward an interesting project or piece of code you wrote. Also, mention the HN Who's Hiring thread.

comment 10y ago · link · parent

Lots of pretty good aio libraries are being developed openly on Github in this organization:

https://github.com/aio-libs

This includes lots of network libraries and database clients.

comment 10y ago · link · parent

Parse.ly - http://parse.ly - Fully Remote - Full-Time

We are hiring a software engineer to work on our real-time analytics dashboard. Pythonistas and JavaScript hackers especially desired.

On the company: We've built a real-time content measurement layer for the entire web.

Our analytics platform helps digital storytellers at some of the web's best sites, such as Arstechnica, New Yorker, Mashable, The Next Web, and many more. In total, our analytics backend system needs to handle over 50 billion monthly events from over 475 million monthly unique visitors.

Our entire stack is in Python and JavaScript, and our team has innovated in areas related to real-time analytics, building some of the best open source tools for working with modern stream processing technologies. Our UX/design team has also built one of the best-looking dashboards on the planet, using AngularJS and d3.js. You can see some screenshots: http://parse.ly/tour

Our distributed team is best-in-class and we happily skip commutes by working out of our ergonomic home offices. Here's a photograph of mine running two full-screen Parse.ly dashboards on my monitors: https://flic.kr/p/v1NZ73

We are currently looking for software engineers to help us build the best real-time analytics dashboard the world has ever seen. The only requirement is some experience in Python/JavaScript. Bonus points for an interest in information visualization, Edward Tufte, and d3.js. To see an example of how we work, check out the blog post, "Whatever It Takes": http://blog.parsely.com/post/46

Apply now by sending a CV/website, github link (if available), and 1 paragraph intro to work@parsely.com. Let us know what part of the position interests you, or point us toward an interesting project or piece of code you wrote. Also, mention the HN Who's Hiring thread.

p.s. we are also looking for folks interested in intersection of product and marketing, such as hybrid product designer/developers.

comment 10y ago · link · parent

I run a 20-person fully distributed product / engineering team at Parse.ly, and this post is a great summary of why we do it. It's not about hating on offices, it's about loving on quality of life.

Work-life balance and harmony is enabled by remote work. I don't have kids, but many of my colleagues do, and they really appreciate the flexibility.

I don't think all roles can work perfectly remotely, but software engineering certainly can. Github (any day but today :)), Trello, Flowdock/Slack/IRC, AWS, GHangout, GDocs -- these are the tools you would use anyway in a good company. And you can trade the money spent on offices for plane tickets to do team retreats and hackathons from time to time.

1
181920
28