The Hidden Revenue Streams in Tech Writing: From Amazon Books to Affiliate Empires
Let me be honest about the Amazon book sales first: they were meager.
Let me be honest about the Amazon book sales first: they were meager.
I published a technical book about training LLMs with Python and PyTorch. The royalties from direct Amazon sales are not the kind of number you retire on. They're not even the kind of number you take a nice weekend trip on. They're the kind of number you notice in your bank statement and feel vaguely satisfied about before moving on with your day.
And yet the book has been one of the better business decisions I've made for Grizzly Peak Software. Not because of the royalties. Because of everything the book enables.
This is the piece that's missing from most "write a technical book" advice: the direct sales number is almost irrelevant. The book is infrastructure.
What a Technical Book Actually Does for You
A published technical book does several things simultaneously that are hard to replicate through other means:
It establishes credibility at a different level than blog posts. A book is a commitment signal. It says: I understand this well enough to write 50,000 words about it. Blog posts can be written in an afternoon. Books can't. Readers and potential clients know this.
It provides a perpetual content foundation. Every chapter is a potential article. Every concept is a potential tutorial. Every example is a potential repository. I can pull from the book indefinitely to create derivative content without starting from scratch.
It creates a search footprint across platforms. Amazon search, Goodreads, O'Reilly, book review sites. These are different audiences and different distribution channels than SEO-optimized blog content. They compound the overall surface area of your presence.
It's a credibility multiplier for everything else. When I write a technical article, I mention the book. When I speak to a potential client, I mention the book. When I post on LinkedIn, I mention the book. The book makes everything else slightly more credible.
The royalties are a side effect. The infrastructure is the value.
Building the Affiliate Layer
The revenue model that actually makes technical content financially worthwhile is layered. The book is layer one. Affiliate programs are layer two.
The mechanics are straightforward: every time you reference a tool, service, product, or resource in your content, you have an opportunity to use an affiliate link. A portion of purchases made through that link comes back to you.
The categories that work well for technical content:
Development tools and SaaS subscriptions — Developer tooling has strong affiliate programs. DigitalOcean's referral program, various deployment platforms, monitoring tools, and productivity software all have programs worth exploring.
Technical books and courses — Amazon Associates pays small percentages on book referrals, but technical content readers buy books constantly. At scale, these add up. More importantly, recommending specific books relevant to your content builds trust with readers who are actually making purchase decisions.
Hardware for developers — Mechanical keyboards, monitors, ergonomic equipment. Developer content audiences have specific gear preferences and spending patterns. Amazon Associates is the obvious starting point, but manufacturer direct programs often pay better.
AI and API services — As AI tooling proliferates, affiliate and referral programs have expanded significantly. Services you'd recommend anyway can pay referral fees.
The implementation I use for managing affiliate links cleanly:
// utils/amazonUrl.js
function buildAdUrl(destinationUrl, amazonTrackingId) {
if (!amazonTrackingId) {
return destinationUrl;
}
try {
const url = new URL(destinationUrl);
if (url.hostname.includes('amazon.com')) {
url.searchParams.set('tag', amazonTrackingId);
return url.toString();
}
return destinationUrl;
} catch (e) {
console.warn(`buildAdUrl: Invalid URL "${destinationUrl}". Returning as-is.`);
return destinationUrl;
}
}
module.exports = { buildAdUrl };
This utility makes it trivial to manage affiliate tags across all ad units and product links without hardcoding them into templates. It handles the cases gracefully: no tracking ID, non-Amazon URL, malformed URL. The template just uses final_url and doesn't need to know the affiliate logic.
The Content-to-Commerce Funnel
The pattern that works for technical content monetization isn't "write content, add affiliate links, collect money." It's more specific than that.
Content attracts specific searchers. An article titled "Training Custom LLMs with PyTorch: A Practical Guide" attracts people who are actively trying to do exactly that. These aren't casual readers. They're people with a specific goal, often a professional context, and a willingness to spend money on resources that help them.
Recommendations earn trust from qualified readers. If someone found your content useful enough to read to the end, they're predisposed to trust your recommendations. A book recommendation in that context carries more weight than a cold ad.
Purchase happens when the recommendation is specific and actionable. "Check out some books on PyTorch" doesn't convert. "This book by [author] was the most practical reference I found for the specific problem of training on custom datasets — direct link" does.
The funnel:
Organic search → Content consumption → Credibility established →
Specific recommendation → Click → Purchase → Affiliate commission
The failure mode is trying to shortcut any step. Content that doesn't earn trust doesn't convert. Recommendations that aren't specific don't get clicked. Traffic without the right intent doesn't buy.
The Grizzly Peak Software Revenue Architecture
Here's how the revenue layers stack at grizzlypeaksoftware.com:
Layer 1: Organic Traffic 500+ technical articles targeting specific keyword clusters. Each article is a long-tail search entry point. The library has enough coverage that new search traffic arrives daily without active promotion.
Layer 2: Display Advertising For the traffic that arrives and doesn't have immediate transactional intent, display ads provide a baseline monetization floor. Not impressive per-click, but consistent.
Layer 3: Affiliate Links Contextual recommendations for books, tools, and services referenced in content. Conversion rates are higher because the recommendations are relevant and the reader has already engaged deeply.
Layer 4: The Job Board grizzlypeaksoftware.com/jobs monetizes through premium listings for companies who want to reach the specific audience of software engineers exploring career alternatives. The organic traffic from burnout-related content sends qualified visitors to the board.
Layer 5: Direct Consulting The credibility built by the technical library, the book, and consistent publishing converts into consulting inquiries from organizations that need the specific expertise I write about. This is the highest-margin layer and the one most directly enabled by the book.
These layers don't all have to be developed simultaneously. I built them in roughly this order over several years. Each layer reinforces the others: more traffic means more affiliate revenue means more financial runway to keep producing content.
What Makes Technical Content Convert
Most technical content doesn't convert well because it's written to be informative rather than to be useful. The distinction matters for monetization.
Informative: "Here is how LLMs work." Useful: "Here is how to implement this specific pattern in your codebase, with the exact code you'll need."
Useful content attracts readers who are in the middle of solving a problem. Problem-solvers are buyers. They're evaluating tools, they're looking for books that go deeper, they're considering services that save them time.
Informative content attracts readers who are curious. Curious readers are less predictably transactional.
The voice that converts in technical writing is the experienced practitioner. Not the expert who explains theory. The practitioner who says "I tried five approaches to this problem, two of them were disasters, here's what actually worked and why."
That voice builds trust faster than any other approach, and trust is what the entire monetization stack runs on.
The Side Hustle Income Reality Check
I'm not going to tell you technical writing will make you rich quickly. That's not what this is.
What technical content writing can do:
- Build a compounding asset that generates passive income over years, not months
- Create credibility infrastructure that multiplies the value of everything else you do
- Provide consulting lead generation that converts at high rates
- Develop adjacent products (job boards, tools, courses) that serve the same audience
What it won't do:
- Pay your rent next month
- Replace your engineering income in year one
- Produce consistent month-over-month revenue growth in a predictable way
The financial curve is frustrating at the beginning and rewarding over time. Traffic compounds. Domain authority compounds. Affiliate relationships compound. The book becomes a reference that people cite for years.
If you're building this as a year-one income replacement, you'll likely be disappointed. If you're building it as a 3-5 year asset that provides financial resilience while you keep your engineering job, it's genuinely worthwhile.
Practical Starting Points
If you're thinking about building toward this model, here's where to start:
Write what you know deeply, not what you think will rank. The best technical content comes from genuine expertise and genuine curiosity. You'll sustain the quality over time if you're actually interested in the subject.
Start with a narrow focus. Grizzly Peak Software covers six pillars now because it has 500+ articles. It started much narrower. Depth in one area builds authority faster than breadth across many.
Build the email list before you need it. Organic search is great. But a list of readers who opted in to hear from you is more durable than SEO rankings, which can shift.
Treat the book as infrastructure. If you write a technical book, don't measure success by royalties. Measure success by consulting inquiries, affiliate link clicks, and whether it got people to your site who wouldn't have found you otherwise.
Be honest about products you recommend. Affiliate income from recommending bad products costs you trust faster than it makes you money. Only recommend things you've actually used and found valuable.
The Long Game
I started writing technical content because I had things to say. The monetization came later, as the audience grew and the credibility accumulated.
The engineers who build real, lasting income from technical writing aren't optimizing for affiliate clicks in year one. They're building a body of work that represents genuine expertise, serving an audience that has real problems, and trusting that the financial returns follow from actually being useful.
That's the play. It's slower than anyone wants it to be and more durable than most people expect.
Shane is the founder of Grizzly Peak Software and the author of a technical book on training LLMs with Python and PyTorch.