GithubHelp home page GithubHelp logo

papay-challenge's Introduction

Papay-challenge

1) Implementing an immutable queue:

The key point here is realize that a queue can be seen as a reverse stack, with this in mind I defined two stacks, one for saving the information in a push operation and the other one for reverse the previous stack and return the elements in a peek or in a pop operation.

the project was done using maven 3.5 and Java 8.

2) Design A Google Analytic like Backend System:

There are two main scenarios to keep in mind, when an application send information to the backend and when the user want to get some statitics about the information.

In the first case, the client send the information in asyncronous way to an API Gateway that validates that the app is allowed to send information, then a lambda function is created for mapping the information to a specific format and send this information to a event queue, in this case I chose Kafka. The information is taken by a server using Spark and put into a HBase database.

In the second case, an user ask for some statistics and an API Gateway validates that the user is valid, then a lambda function is created and this lambda ask the query to Apache Hive. Apache Hive takes the information from Hbase and create the statistics needed and return them to the user.

this is the diagram:

Architecture diagram for Google Analytics

papay-challenge's People

Contributors

jfsanin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.