These are chat archives for dev-pt/javascript

27th
Apr 2016
André Costa
@nogdacosta
Apr 27 2016 08:46
node and sails.js just for testing, but nothing on production either.
Marcelo Lebre
@marcelolebre
Apr 27 2016 08:59
well, sails is cool enough at the beginning however the documentation is still too sparse and recently the principal contributor had a falling out with the project so things are evolving slowly
André Costa
@nogdacosta
Apr 27 2016 09:01
And the guys I knwo that are using Nodejs (sails) on production, are having a really bad time on scaling the product
Don’t know if it’s the right option… but for proof of concepts it really sounds great
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:03
that has been our approach to it
having an MVC structure, ORM and WebSocket already embedded is kind of cool for the initial push of a prototype or a very basic app, going forward its kind of fix-it-yourself
Thiago Dantas
@tdantas
Apr 27 2016 09:42
sails, definitely is not a good option :( regarding prototyping I think hapi/koa are better options. we all know that after you present the 'prototype' working to the Product Owner you sold your soul. there is no more room to start a brand new project :)
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:44
well that depends of your initial goals with the prototype ;)
Thiago Dantas
@tdantas
Apr 27 2016 09:45
I think prototyping with hapi/express/koa we are faster than sail. and without globals ;)
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:45
well, completely different stack
Thiago Dantas
@tdantas
Apr 27 2016 09:46
hapi or koa for me , are the best options. ( by now )
are you using server side rendering or single page app ?
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:47
the whole middleware package that sails brings has upsides and downsides, other than that, it all goes down to how experienced you are with it and how confortable you feel with the tools it gives you
so it's fine
on a quick note, I'm not going back to sails though :P
Thiago Dantas
@tdantas
Apr 27 2016 09:47
Hapi brings the sensible defaults to web out of the box
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:48
have you had to scale them?
hapi or koa i mean
Thiago Dantas
@tdantas
Apr 27 2016 09:48
hapi
yeah
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:48
how did it fare?
Thiago Dantas
@tdantas
Apr 27 2016 09:49
I didn't have any trouble
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:49
horizontally or vertically?
Thiago Dantas
@tdantas
Apr 27 2016 09:50
horizontally ftw
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:50
direct interface with any type of db?
Thiago Dantas
@tdantas
Apr 27 2016 09:50
I used 2 databases. couch and postgresql
no problem at all
still working
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:52
cool cool cool
and resilience?
how much maintenance did you have to do or monitoring for keeping it up?
Thiago Dantas
@tdantas
Apr 27 2016 09:52
yeah, the infrastructure team did a really great job
I worked for 5 months until we finish the project
and past week I discovered that they are running the same code since past year
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:54
awesome
Thiago Dantas
@tdantas
Apr 27 2016 09:54
yeah !
was great !
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:54
can you disclose the usage?
like, heavy RPMs
or something more casual?
Thiago Dantas
@tdantas
Apr 27 2016 09:55
I can't :( But I could say that we were using 8 processes in reverse proxy
no memory leaks at all
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:55
cool :)
Thiago Dantas
@tdantas
Apr 27 2016 09:56
the wallmart team did a really great job
they used on blackfriday first time
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:56
ah ah :)
Thiago Dantas
@tdantas
Apr 27 2016 09:56
;)
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:56
:moneybag: on the server
lol
Thiago Dantas
@tdantas
Apr 27 2016 09:56
lol lol
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:56
cool though :thumbsup:
Thiago Dantas
@tdantas
Apr 27 2016 09:58
other cool project ( restify ). dtrace probes everywhere
really nice to instrument the code live in production
used only for api
Marcelo Lebre
@marcelolebre
Apr 27 2016 09:59
the name gives it away I guess :P
Thiago Dantas
@tdantas
Apr 27 2016 10:00
ehehehhehe
yeah
Miguel Guilherme
@mguilherme
Apr 27 2016 13:47
@jpamarohorta I like this one: http://www.flotcharts.org/
João Horta
@jpamarohorta
Apr 27 2016 13:48
nice
it has a lot of plugins for what I'm seeing
Miguel Guilherme
@mguilherme
Apr 27 2016 13:49
yep
João Horta
@jpamarohorta
Apr 27 2016 13:49
but I'm always worried about the lack of customization that you can do with this libraries
I'm afraid that a wild design appears and asks for something that the library can not do
Miguel Guilherme
@mguilherme
Apr 27 2016 13:50
sure, I never created a complex chart with flotcharts
that, my friend will be always an issue :)
"suddenly, a wild design appears"
João Horta
@jpamarohorta
Apr 27 2016 13:51
^^
Ricardo Otero
@rikas
Apr 27 2016 15:19
d3.js
is super effective
Marcelo Lebre
@marcelolebre
Apr 27 2016 16:09
miguel guilherme fainted.
Miguel Guilherme
@mguilherme
Apr 27 2016 16:10
no no