Coder Social home page Coder Social logo

wenbinzhu / pokemongo_map Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.73 MB

Pokémon Map Service which shows real-time info of nearby catchable Pokémons

Home Page: https://wenbinzhu.github.io/PokemonGo_Map/

HTML 8.91% JavaScript 50.79% Python 35.03% Shell 0.13% CSS 5.14%

pokemongo_map's Introduction

PokemonGo Map

A Pokémon Map Service which shows real-time info of nearby catchable Pokémons

  • Front-end: HTML/Javascript/CSS/Bing Map, Hosted by Github Pages
  • Back-end: Python, Django/Docker/Postgresql/Redis/Google S2, Hosted by AWS services: Elastic BeanStalk, RDS and SQS
  • Front and Back end Connected through API Gateway
  • Mock crawling apis used only due to legal issues
  • The real crawling api is given by this repo

Back-end architecture

  • Two clusters of servers, one cluster for handling requests, the other for crawling data
  • Two clusters communicate through message queue(AWS SQS)
  • Web-server cluster receives requests, query Redis and Postgresql database for currently catchable pokemons of this area, whcich have already been crawled and put the requests into the message queue
  • Crawler-server cluster get requests from the message queue, do crawling, store crawled data into database and delete expired data periodically
  • Redis is used for deduplication of repeated query: Web-server breaks the requested area to cells using Google S2 and check if the requested cell has already requested several seconds ago, if yes, no need to crawl again
  • Back-end is scalable with Elastic BeanStalk

pokemongo_map's People

Contributors

wenbinzhu avatar

Stargazers

 avatar

Watchers

 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.