My take has been that once a car starts giving problems get rid of it rather than pour money into it. I think for your car to have lasted 17 years demonstrates that you bought well.
Next time I'd buy a 12-18 months old car with low kms so you don't cop the first year depreciation