Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excel dokumlerini asenkron olustur #32

Open
ghost opened this issue Mar 4, 2018 · 0 comments
Open

excel dokumlerini asenkron olustur #32

ghost opened this issue Mar 4, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2018

Kullanilan excel kutuphanesi asenkron calissa dahi http response'a dogrudan stream yapamiyor, once dosyayi kapatip workbook'u commit etmesi gerekiyor.

Bu sebeple, su an kullanilan dbb73e7#diff-f99d23d803f276845f207f3c29be9124R15 non-deterministic cozume guveniyoruz.

Bunun yerine soyle bir sey yapmak lazim:

  • dosya olusturmayi bir "talep" gibi degerlendir
  • dosyayi arka planda olustur, temporary olarak diske yaz
  • yazilan dosyanin referansini bir collection'a talep sahibi bilgisiyle birlikte koy, capped yap ki misal 24 saat icinde dosya referansi silinsin
  • dosyayi da 24 saat icinde sil (cron)
  • bu arada collection publish olacagi icin ui'da talep sahibine bu durumu notification olarak goster (Collection.observe ile yapilabilir)
  • ayni zamanda bir de mail at
  • olusturulan yeni link ile dosya download edilebilsin,
  • bonus: dosya download tamamlaninca dosyayi dogrudan referansiyla birlikte sil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants