You get an advance. And in the past it used to be possible to get a royalty stream too. In the 80s and 90s, some authors made fortunes like this.
Today, you'll only get an advance - or maybe small royalties on low-volume sales and no advance.
If you self-pub, you have to consider the market very carefully. If you look at the Leanpub best-sellers they're mostly senior-level niche performance/career dev topics in mainstream corporate languages - like specific performance tweaks in Java.
The bigpubs usually do broad-brush topics like "How to Visual Studio". They're aimed more at beginners and side-movers. They have the marketing links to sell into the big physical bookstores, but for tech that market is smaller than you might expect, so they're unlikely to make anyone rich.
But... it's worth considering all of this is just another example of product/market fit. You get the best results from growing a customer base and giving them what they really want, just as you do for any other business, but with some added complications around product creation and distribution.
You might want to write a fun book about something creative and unusual in tech, but even with a following it's unlikely to sell many copies.
With selfpub you have some control over the big picture. Bigpubs just do what they do. Upfront money and your name on real shelves in a real bookstore may seem sweet, but there are huge costs to authors down the line, and mostly they're not a good deal now.
Today, you'll only get an advance - or maybe small royalties on low-volume sales and no advance.
If you self-pub, you have to consider the market very carefully. If you look at the Leanpub best-sellers they're mostly senior-level niche performance/career dev topics in mainstream corporate languages - like specific performance tweaks in Java.
The bigpubs usually do broad-brush topics like "How to Visual Studio". They're aimed more at beginners and side-movers. They have the marketing links to sell into the big physical bookstores, but for tech that market is smaller than you might expect, so they're unlikely to make anyone rich.
But... it's worth considering all of this is just another example of product/market fit. You get the best results from growing a customer base and giving them what they really want, just as you do for any other business, but with some added complications around product creation and distribution.
You might want to write a fun book about something creative and unusual in tech, but even with a following it's unlikely to sell many copies.
With selfpub you have some control over the big picture. Bigpubs just do what they do. Upfront money and your name on real shelves in a real bookstore may seem sweet, but there are huge costs to authors down the line, and mostly they're not a good deal now.