[PYTHON] Let's make a spot sale service 9 (Task Queue edition)

Field map

I can finally make a field map, but I will decide this time because the details of the interaction between the server and the client have not been decided yet. b56ed26c-077f-e39c-2582-51bc29f48cab.jpeg

To see this screenshot What the client wants

On the other hand, the server

Circle information is quite so if you know the circle id and the url of the circle cut. If you manage the squares in one dimension, it will be easier to handle. Characters walking around the venue will randomly walk like the villagers of Dragon Quest.

About the logic that decides where to place the circle

The location is decided at the moment when the store is opened from the circle menu. At present, we will decide the candidates in advance and randomly acquire them.

The place to place it is where you painted red and black with the following squares. map.jpg

When a circle opens a store, it seems good to create it in advance with 1 store opening location / 1 entity in the Data Store and search for locations that have not yet opened.

It is a method to create in advance, but hard-code as follows. https://gist.github.com/nagai/3788f27b94d5321abb7f Since the amount of writing of the entity was large and it seemed to take time to create the circle space Parallelized using TaskQueue. Also, since this api is not needed by anyone other than the service administrator,

app.yam


- url: /admin/api/event/.*
  login: admin
  secure: always
  script: controller.admin.api.event.app

And login is required with administrator privileges.

That's why today's brunch is here https://github.com/nagai/freemarket/tree/20140511

Next time, we will create circle entry / exit processing and field map rendering on the client side.

Recommended Posts

Let's make a spot sale service 9 (Task Queue edition)
Let's make a spot sale service 2
Let's make a spot sale service 1
Let's make a spot sale service 3
Let's make a spot sale service 8 (image uploader edition)
Let's make a spot sale service 4 (in Python mini Hack-a-thon)
Let's make a cron program in Java! !! (Task Scheduler)
Let's make a Discord Bot.
Make Responder a daemon (service)
Let's make a rock-paper-scissors game
Let's make a LINE bot using various services [ngrok edition]
Let's make a remote rumba [Hardware]
Let's make a remote rumba [Software]
Let's make a GUI with python.
Let's make a breakout with wxPython
Let's make a graph with python! !!
Let's make a supercomputer with xCAT
Let's make a shiritori game with Python
Make Jupyter Notebook a service on CentOS
Make Unity Accelerator a service on Linux
Let's make a voice slowly with Python
Let's make a simple language with PLY 1
Let's make a multilingual site using flask-babel
Let's make a web framework with Python! (1)
Let's make a tic-tac-toe AI with Pylearn 2
Let's make a combination calculation in Python
Let's make a Twitter Bot with Python!
Let's make a web framework with Python! (2)
Let's make a Backend plugin for Errbot
Let's replace UWSC with Python (5) Let's make a Robot
Let's make a module for Python using SWIG