If you could post more details about your project maybe someone could come up with some advices. Also as a general rule try to choose a solution that you see there are libraries already made and people using it, otherwise if you go full DIY and you have issues, you are on your own.