Jump to content
Forumu Destekleyenlere Katılın ×
Paticik Forumları
2000 lerden beri faal olan, çok şukela bir paylaşım platformuyuz. Hoşgeldiniz.

finans icin data visualization


Öne çıkan mesajlar

Mesaj tarihi:
Simdi bir kac tane farkli is yapan worker'lar var.
Flask'da basit bir frontend yaptim:

WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead


zaten Environment: production diyor.

- web'e su an icin acik degil, niye korkutuyor? (macosx'deyim macbookpro)
- ayni anda 1'den cok query calistiramiyor muyum?
- localhost:5000 ile ayni networkten baglanamiyorum, illa 127.0.0.1:5000?

//
SQL olayina girmedim:
query > pandas_datareader > flask
Mesaj tarihi:
niye demisler merak ettim ben de
onune load balancer vs koyucaksan WSGI lazim tabii de
standalone is icin direk flask kullanmanin neyi problem olur bilemedim.
Mesaj tarihi:
ha ben flask'la olur diye dusunmustum daskldjasldkj

WSGI'yi okuyorum simdi, Nginx+gunicorn'la direk python app'ime baglasam web'e mi aciliyor simdi bu app?

http://docs.gunicorn.org/en/stable/run.html
Mesaj tarihi:
gunicorn'la bir kac tane worker calistirabiliyorum? (o yuzden flask yetemiyor)
py'ler ayni datayi kullanmazlarsa async olmasina gerek yok workerlarin?

nginx zaten reverse-proxy tarafi, orasi straight forward.

//
uWSGI ne mesela, o daha mi kolay?


PS:
ne cok sey cikmis la son 5-6 senede
Mesaj tarihi:
ok sunu okudum anladim gibi olayi.

The outside world <-> Nginx <-> The socket <-> Gunicorn

three tier

"three tier architecture". Ie, the webserver (Nginx in your case) will handle many requests for images and static resources. Requests that need to be dynamically generated will then be passed on to the application server (Gunicorn in your example). (As an aside, the third of the three tiers is the database)

Mesaj tarihi:
uWSGI ile gunicorn ayni ise hizmet edioyor
WSGI deniyor galiba geneline, ben de hakim degilim.

ama yazdigin gibie evet, gunicorn da gidip senin django, flask neyse onu cagiriyor. Zaten gunicorn ile kullaninca flask bir callable aplication oluyor.
  • 2 hafta sonra ...
Mesaj tarihi:
mysql/sql query atmam gerekiyor.

az cok biliyorum, yine de kaynak gosterebilecek var mi?

sunu anliyorum yaziyorum mesela raw_sql


db.raw_sql("select cusip, permno, date, bidlo, askhi "

"from crsp.dsf " "where permno in (14593, 90319, 12490, 17778) "

"and date='2013-01-04'")



skintim su ki;
pandas datareader datayi memory'ye yaziyor, karsidaki server 24 core 256 gb ram ona ragmen yetemiyor.

line line isleyip csv'ye nasil yazdiriyorum SQL query sonucunu?
×
×
  • Yeni Oluştur...