These are chat archives for biojs/biojs

16th
Apr 2018
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 04:26
Thank you @rowlandm :smiley:
@alkesh47, I just opened the website on my mobile. It is showing a network error (don't know how to attach photo in gitter android app), what could be the possible reason?
Rohit Gupta
@r0hit-gupta
Apr 16 2018 04:34
@sarthak-sehgal that is probably because of the https. Adding https support on the server would solve things up.
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 04:36
Oh, okay! I thought that you've added the support.
Alkesh Srivastava
@alkesh47
Apr 16 2018 05:29
@sarthak-sehgal That's because your browser is blocking mixed content. https support would solve that. Even then I would recommend viewing it on desktop as it is not perfectly optimized for mobile.
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 07:02
@alkesh47, yes, I understand
:smiley:
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 08:11
Nice read: https://www.sisense.com/blog/postgres-vs-mongodb-for-storing-json-data/
Also, as @rowlandm mentioned, keeping DevOps in mind, I think we all agree on postgresql/nosql. Though, it would be more clear after running a few tests in the community bonding period as discussed in the community call.
Yo Yehudi
@yochannah
Apr 16 2018 08:48
wow, you've been busy doing some awesome work!!
Rohit Gupta
@r0hit-gupta
Apr 16 2018 11:00
@sarthak-sehgal I don't think the choice of the DB should matter much in our case. Performance would almost be the same until we need to process more than a hundred thousand data items and I think we are very unlikely to hit this scenario.
Also, I had shared earlier the database response times. It takes an average of 50ms to fetch the all the components from the database.
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 11:06
Isn't it 300ms? As you shared earlier after compressing the data..
@r0hit-gupta, we have to keep the DevOps in mind too. That's where the concern for the database system arises..
Rohit Gupta
@r0hit-gupta
Apr 16 2018 11:07
It takes around 300ms for the data to reach to the client.
Rohit Gupta
@r0hit-gupta
Apr 16 2018 11:12
@sarthak-sehgal sorry but I did not understand your concern. Can you please elaborate?
Alkesh Srivastava
@alkesh47
Apr 16 2018 12:00
@sarthak-sehgal I think what @r0hit-gupta is trying to say is that we should be aware of over optimization. It might not be relevant but let me give a simple analogy.
If someone writes a simple plugin that makes the launching time of an editor 10-15% faster and spends 2 hours on the task, then in order to get back those 2 hours invested, he will have to open/close the editor at least for a decade(considering all the modern editors take 4-5 seconds to load).
For a fraction increase in the response time, and given the amount of data we have, the DB choice should not be our prime concern. So I think that's what @r0hit-gupta is trying to point out is that we should adhere to our use case in order to prevent any over optimization.
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 12:45
Hey @alkesh47, I think you have misunderstood my point.
I got a bit busy so I couldn't explain it.
Alkesh Srivastava
@alkesh47
Apr 16 2018 12:50
No, I was explaining @r0hit-gupta 's point is all. I think that are his concerns.
Rohit Gupta
@r0hit-gupta
Apr 16 2018 12:50
@alkesh47 that is precisely what I meant to say.
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 12:51
As the BioJS project was revealed, the primary concern was to decide which database to use and how it would be managed after the summer.
These concerns arise because of the fact that the database will have to perform functions like sorting (for top 3 components for each category) in which we wouldn't want much time lag. The MongoDB vs Postgres thing was also discussed in the last community call.
Also, another important concern is DevOps. Who will be managing the stuff after the summer? Would it require him/her to learn a new skill? As @rowlandm pointed out, he cannot give much of his time to learning a new skill. As far as I know, Rowland is more comfortable with Postgres. I'm trying to say that we should not neglect the DevOps as @rowlandm pointed out here: https://docs.google.com/presentation/d/1LbkgW07l5yKYneAzQFhYQOHup6JCPXlLJ9bJPtBI4Qg/edit#slide=id.g3456451396_0_5 (See "Tips for backend students") :smiley:
Rohit Gupta
@r0hit-gupta
Apr 16 2018 13:04
Yes. I agree with you completely @sarthak-sehgal. We might not have a DevOps engineer with us all the times. This is why I suggest MongoDB. It is almost a zero configuration db which does all the work by itself. All we need, is to use simple javascript functions like find and save instead of creating different tables and queries. But the community preference is greater here, so the tools and techniques can be adapted as suggested by the community here.
Alkesh Srivastava
@alkesh47
Apr 16 2018 13:13
Building on top of what @r0hit-gupta said, I feel that since GSoC is more of a community thing and ideally the people who get selected would stay long after summer has ended. I think that's what GSoC is all about-more involvement in open source, hence the person's involvement should continue afterwards also. So the choice should be such that it aligns with the community as well as the person developing the solution.
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 13:18
Yes, I completely agree with you @alkesh47. I think we all will always stay connected with BioJS. :smiley:
About MongoDB vs Postgres, I think it will stay a long running debate. :smile:
Rohit Gupta
@r0hit-gupta
Apr 16 2018 17:28

Here is the new domain with HTTPS support.
https://biojs.ml/

@alkesh47 you may use this for your testing now.

Alkesh Srivastava
@alkesh47
Apr 16 2018 17:34
sure, thanks a ton :+1:
Works like a charm now :smiley:
Rohit Gupta
@r0hit-gupta
Apr 16 2018 17:36
Great :smile: :thumbsup:
Alkesh Srivastava
@alkesh47
Apr 16 2018 17:45
Hi @all, I have updated the app using fresh endpoint, feel free to see it now. It now works without the need for any browser hack. The page load time is also great but I would implore everyone to perform a real life test. :smiley:
Sadly the app doesn't do anything for now except for rendering the components,it was for testing purposes only. I wil add functionality soon enough.
Sarthak Sehgal
@sarthak-sehgal
Apr 16 2018 17:47
@alkesh47, looks great! :smiley:
Alkesh Srivastava
@alkesh47
Apr 16 2018 17:47
Thanks :smile:
Rohit Gupta
@r0hit-gupta
Apr 16 2018 18:52
Awesome work @alkesh47