Giving without exception

How do you balance giving without expectation to being taken advantage of?  After many years in an unbalanced long term relationship and many discussions where the lack of balance and attempts to address my needs are made secondary, if referred to at all, I am considering a major life change.  But in meeting my needs, I will cause great pain for those around me.  This internal and external dialogue has disturbed my peace for years.