Country, city, company and level of seniority influence compensation a lot more than the area of CS/software development that you focus on.
If you're doing back office work / stuff that just keeps the lights on you won't be paid any better than any other random dev job.