NodeJS layer in front of elasticsearch