initial commit, making longpoll buffer and consumer mechanism