I'm currently working on an online java game. Currently building the messaging system between the client/server and I came across a big if.
I am not experienced as a game programmer, only worked with web applications so far. Currently I made the messaging system using a custom solution and Java NIO with sockets, but it got me wondering: what if it fails? What if I have to change it all to (insert name here)?
So I thought, well, I gonna abstract the network layer of my engine, and if someday I need to change, I'll swap the adapter! But then, came two more problems, how would I abstract a network layer? And of course, is it worth the trouble? Will it be a waste of time?
I'd love some insight on these doubts.