I wrote in detail about the process of writing, marketing, and releasing my first book here:
https://adamwathan.me/the-book-launch-that-let-me-quit-my-jo...
And was interviewed on IndieHackers to talk about the most recent one here:
https://www.indiehackers.com/podcast/098-adam-wathan-of-refa...
If the work is a good match for your skills and personality it’s a really great way to make a fantastic living.
I’m an outlier for sure but $20k is low. If you do a great job at everything that goes into running a business like this you can definitely do much better than that. Josh Comeau did an incredible job building his audience and reputation before releasing his CSS course a few months ago for example and he has done over $500k if I remember right.
Writing is half the battle—it is a significant hurdle and not everyone can write a great technical book.
But the other half (and I struggle with this mightily) is sales/marketing (and the whole 'business' side). Making it look pretty, getting people to know it exists, promoting it.
Many of the best technical writers I know are not great at the latter, and for them, self-publishing might not be the best approach.
I would prefer to read reference content from the vendors themselves and not third-parties, so I don’t understand what draws people to this sort of content I the first place.
That is, I couldn’t create any of this, because I would never buy it myself.
Your story is nonetheless very interesting.
I don’t think anyone can argue with the results, but arguing with reproducible results is a bit more difficult.
If you're not in it _just_ for the money though, go for it. It's extremely satisfying.
My most popular book is actual a book about how I self published. Publish Your Ebook by Joel Dare.
In my opinion, there is a strange marketing game around web frameworks and web frontend development especially.
Rust in Action (https://www.manning.com/books/rust-in-action) is only one data point, but USD20k sounds very low over the lifetime of the book, especially when you consider translation rights and other channels like Safari.
Not that you should necessarily care how you get remembered as you're dead anyway, but I think it's worth it to share knowledge and give to the community if you think you have a contribution worth making. I'm certainly glad other past giants wrote instructional material even if it didn't make them rich.
I doubt that I would see "Here lies Fred, he wrote the greatest book on Fortran ever written" on a tombstone.
Or "Justine, her book on JQuery changed the world" in an obituary.
For a "heritage" book the topic would need to be longer lasting.