da3ndorphin3 :
I would be playing at 1080p on high details(some medium) with a bit of AA. Would this cpu+gpu be good at that res for next 2 year?
I doubt it. Right now especially, unless your PC is absolute top of the line it's likely not going to last for 1080p at 60 or near 60. This is especially true right now because the new generation of consoles is right around the corner. Why would that matter? Well it's interesting. Over the past 4 or 5 years, consoles have been holding games back. This is because when developers program multiplatform, they do so for very weak hardware (i.e. consoles). By doing so, most oftentimes even their ultra settings for games scale down in quality accordingly. This is because consoles have a set list of limitations developers are busy trying to meet, so they're not as preoccupied in developing more advanced engines or more realistic textures.
So now 8th gen is about to arrive on our doorstep, and what does that mean? It means that developers have just gotten a new level of limitations, and it's on par with current medium end PCs and perhaps a bit beyond. You can even tell right now looking at games like RYSE: Son of Rome (which looks like a shitty QTE fest but that's another story) and Infamous: Second Son just how different the levels of quality are. Even as a PC gamer they're astonishing and Crysis 3 and Metro: Last Light are only so comparable to those aforementioned console exclusives. In a lot of ways, I actually find these next gen games to be better looking!
You may be wondering, well, you have a medium end system. Why wouldn't it last as long as consoles? Optimization is the answer. Consoles are optimized very well, and at the end of their cycles even games like Crysis 3 are at least moderately decent to look at. Try playing Crysis 3's PC version on an equivalent GPU as in the Xbox 360 though, and you probably wouldn't score a single digit in the lowest settings (i.e. literally unplayable). In fact it'd probably be unplayable even if you went lower then the lowest possible settings through extremely advancing tweaking.
So in short, will it last? Probably not. You can definitely keep it 2 years, hell, even 3. But expect the envelope to pushed a lot. Probably to the point where 1 year from now you'll only be scoring in the 40's without AA on, and 2 years from now only in the 30's or possibly less.
Don't sweat it though. PC's are about upgrading, and what you can do is ensure that upgrades will be inexpensive. For example, get a PSU with room to upgrade. For example, I'd say that build would do well on 520W, but perhaps go for 650W just to ensure that extra leg room. As for your CPU, the FX-6300 is good for the 7870 for now. Very well balanced. However, unless AMD's next series of FX CPUs, the steamrollers, really start catching up with Intel, don't expect there to be room for strong upgrades on that AM3+ chipset motherboard. If you go with an Intel motherboard socket type, particularly one with an LGA 1150 socket type and one of its haswell cores, you'll have plenty of future upgrades. Actually, you probably wouldn't even need to upgrade for at least 2 or 3 years. There are plenty of people still rocking an i5 2500k and loving it, and probably still will be when Intel's next line of CPUs come out. AMD CPUs on the other hand, are a lot more limited in the GPUs they keep up with. I see a lot more people changed from Zambezi/Bulldozer (FX-6100, 4100, etc.) to Vishera/Piledriver (FX-6300, 4300, etc.) then did the people that changed from Ivy bridge to Haswell or Sandy Bridge to Ivy Bridge. As for a GPU's longevity, those typically aren't too good for 2 years unless you have something in the $400 range and up. That's alright though, because SLI/Crossfire has sort of helped with that. A year from now, the 7870 should be considerably less expensive and AMD will probably have corrected their drivers by then, so Crossfire should be good to go on that.
Anyway, I hope this helped!