Monday, April 17, 2017

Aspiring Hari Seldon - Part 3 - Releasing REST Forecasts

Check out part 2

After playing with Prophet, I wanted a way to distribute the data more publicly.  I could have just incorporated it into our R templates and made it part of the show, but I felt like that was unfair to the general public.

(Though it required a ground-up rework) I used the Flask Restful app we were providing for EVE Mogul.  Though this turned out to be a complete rewrite, I learned a lot about Flask and testing to make things go.

What They Don't Tell You

One of the biggest pains of self-teaching is it's very easy to learn enough to be useful, but not enough to be good.  And the Flask documentation is particularly bad about giving up the barebones of what does what, but totally forgets to sell a viable project shape, leading to a lot of pain later.

Since the original OHLC feed was based loosely off a work project (as a way to test out corners on my own time), it repeated a design flaw.  Turns out there's a very particular Flask shape, and deviating from it causes a lot of problems.  

Some examples to avoid pitfalls:
By using the prescribed Flask structure, all the pieces from launcher to test make a lot more sense.  Particularly, testing was one of the more difficult pieces of the picture.

About The Endpoint

Because of the CPU-intensive operation of running predictions, I wanted to incorporate two features:
  • API keying
  • Caching
Though I'm happy to share the source, and open up to the community, I'm not ready for full-hog release.  TL;DR: There are a couple of Flask eccentricities, and gdoc integration could cause some serious issues.  Also, uncached performance can run north of 15s, which could cause issues for some platforms.

To help get around "walled garden" accusations, I've done a few things:
  1. I've left copious notes and automation on how to deploy the service on your own webhost
  2. I've provided API keys to some other market devs such as EVE Mogul and Adam4EVE
  3. I am happy to distribute keys on-request to other devs
The goal is to get the content out to the widest audience possible, even if the raw data is a little unwieldy.  And due to my limitations as a developer, this is my compromise.  

Predictions In The Wild

Adam4EVE



Though my API service is designed to give you soup-to-nuts everything you need to plot in the REST payload, Ethan02 over at Adam4EVE added his own DB to keep us honest.  I totally love this!  As of right now, it's still in their DEV branch, but expect to see more from them soon!

EVE-Mogul


Extending the existing OHLC candlestick plot, EVE Mogul will let you keep close tabs on what you're currently trading, and this is an excellent chance to gut-check your investments.

Conclusions

Check out the source: ProsperAPI

I didn't get to share all the other super-nerdy #devfleet stuff (like travis-ci integration, or PyPI release).  I will probably try to release more notes on python stuff directly on Medium going forward.

This was an eye opening project in a lot of ways.  This opens the door for more micro-service REST stuff in the future.  Also, I do plan to have the PLEX split covered before CCP releases it on May 9th.

7 comments:

eloisesmith said...

In this game called EVE Echoes, players can buy EVE Echoes ISK on the MMOWTS website.

wowclassicgold said...

I buy wow tbc gold from https://mmorpgmall.com always low price and fast delivery.
https://mmorpgmall.com/Game/gold/Wow-Classic-Gold-TBC-US.html
https://mmorpgmall.com/Game/gold/Wow-Classic-Gold-TBC-EU.html
https://mmorpgmall.com/Game/gold/WoW-Classic-TBC-Level-Boosting.html

wowclassicgold said...

I buy wow tbc gold from MMORPGMALL always low price and fast delivery.

Wow Tbc Gold US
Wow Tbc Gold EU
WoW Classic TBC Level Boosting

Lebron John said...

POECurrency.com is best site that can provide 100% Safe and Cheap Path of Exile 3.16 Currency. Buy POE Currency with Instant Delivery and Best Service.

Attached link: https://www.poecurrency.com/

MejaQQ Official said...

MEJAQQ: AGEN JUDI POKER DOMINOQQ BANDARQ ONLINE TERBESAR DI ASIA

Yang Merupakan Agen Judi Poker DominoQQ BandarQ Online Terbesar di Asia Hadir Untuk Anda Semua Dengan Games dan Bonus Yang Menarik!

Bonus yang Kami Berikan di MEJAQQ :
* Bonus CASHBACK 0,5% 2 KALI (Dibagikan setiap hari MINGGU dan RABU)
* Bonus REFERRAL 10% + 10% SEUMUR HIDUP (Total kemenangan REFERRAL anda)
* Minimal Deposit 20,000
* Minimal Withdraw 20,000
* 7 Bank Lokal (BCA, BNI, MANDIRI, BRI, DANAMON, CIMB NIAGA, PERMATA)
* Deposit via E-Money, Pulsa TELKOMSEL (TANPA POTONGAN)
* 100% Member vs Member
* 12 Game Dalam 1 Akun
* Pelayanan Bank dan Livechat 24 jam
* Tersedia Dalam Aplikasi Android atau IOS.

Mau dapet duit tanpa kerja? Bisa banget!
Caranya? Buruan Kunjungi Sekarang Juga ^.^

Info Lebih Lanjut :
WA 1 : +85515620767
WA 2 : +6287781053779

Kunjungi situs kami di :
MEJAQQ
BandarQ Online
Agen BandarQ Online

annesmith said...

Players who have played WOW know how important Gold is to players, and this is no exception in WOW TBC Classic. Only in WOW TBC Classic, players need to trade through WOW TBC Classic Gold.

In the game, players can use TBC Classic Gold to purchase equipment upgrades and get the thrill of quick upgrades. Since TBC Classic Gold is the main currency in the game, players can actually earn some Gold by completing quests. It's just that it takes players a lot of time.

If players want to get their hands on TBC Classic Gold quickly, consider buying it for a small amount on a big site like MMOWTS. If you encounter problems during the purchase process, you can always consult the website's 24/7 customer service, they will help you with everything.

홍성노블홈타이 said...

Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.동해출장샵
삼척출장샵
속초출장샵
원주출장샵
강릉출장샵
춘천출장샵
With the pandemic bringing down the scope of conventional advertising and marketing practices, digital marketing boomed and became the forerunner in the field of marketing.

Post a Comment