Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Por quê o JusBrasil mudou para Python?

Por quê o JusBrasil mudou para Python?

Nessa apresentação procuro mostrar um case de sucesso que aconteceu na emrpesa JusBrasil. A empresa empregava Java em todos os projetos, e resolvemos mudar camada Web para Python, para agilizar o desenvolvimento e dar mais legibilidade ao código. Os resultados obtidos foram excelentes, e fazem parte da nossa nova plataforma. Mostrarei os critérios utilizados para escolha da tecnologia Flask e como foi usado no projeto.

Osvaldo Matos Júnior

July 14, 2013
Tweet

More Decks by Osvaldo Matos Júnior

Other Decks in Technology

Transcript

  1. )ODVNLV)XQ IURPIODVNLPSRUW)ODVN DSS )ODVN BBQDPHBB #DSSURXWH  GHILQGH[  UHWXUQ

    +HOOR:RUOG LIBBQDPHBB  BBPDLQBB  DSSUXQ GHEXJ 7UXH
  2. -LQMD 'MDQJROLNH KWPO! KHDG!WLWOH!^^WLWOH``WLWOH!KHDG! ERG\! XOLG QDYLJDWLRQ! ^IRULWHPLQQDYLJDWLRQ` OL!DKUHI ^^LWHPKUHI``FODVV

    ^^ ILUVW LIORRSILUVW``!^^LWHPFDSWLRQ``D!OL! ^HQGIRU` XO! K!^^WLWOH_FDSLWDOL]H_WUXQFDWH  ``K! ^^WH[W`` ^LQFOXGHIRRWHUKWPO` ERG\!KWPO!
  3. %DVH7HPSODWH KWPO! KHDG! OLQNUHO VW\OHVKHHWKUHI VW\OHFVV! WLWOH!^EORFNWLWOH`^HQGEORFN`0\ :HESDJHWLWOH! KHDG! ERG\!

    GLYLG FRQWHQW!^EORFNFRQWHQW`^HQGEORFN `GLY! GLYLG IRRWHU! ^EORFNIRRWHU` FRS\&RS\ULJKWE\D KUHI KWWSGRPDLQLQYDOLG!\RXD!^HQGEORFN` GLY! ERG\!
  4. UHQGHUBWHPSODWH FKLOGKWPO KWPO! KHDG! OLQNUHO VW\OHVKHHWKUHI VW\OHFVV! WLWOH!,QGH[0\:HESDJHWLWOH! KHDG! ERG\!

    GLYLG FRQWHQW!K!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U

    GE0RGHO  QDPH GE&ROXPQ GE6WULQJ  SULPDU\BNH\ 7UXH HPDLO GE&ROXPQ GE6WULQJ  #DSSURXWH XVHUQDPH! GHIVKRZBXVHU QDPH  XVHU 8VHUTXHU\ILOWHUBE\ QDPH QDPH  ILUVWBRUB UHWXUQUHQGHUBWHPSODWH XVHUKWPO XVHU XVHU
  8. GHIFUHDWHBDSS FRQILJ 1RQHDSSBQDPH 1RQH EOXHSULQWV 1RQH  DSSBQDPH DSSBQDPHRUBBQDPHBB DSS

    IODVN)ODVN DSSBQDPHVWDWLFBIROGHU 1RQH FRQILJXUHBDSS DSSFRQILJ FRQILJXUHBEOXHSULQWV DSSEOXHSULQWV FRQILJXUHBHUURUBKDQGOHUV DSS FRQILJXUHBGDWDEDVH DSS FRQILJXUHBFRQWH[WBSURFHVVRUV DSS FRQILJXUHBWHPSODWHBILOWHUV DSS FRQILJXUHBEHIRUHBUHTXHVW DSS FRQILJXUHBH[WHQVLRQV DSS FRQILJXUHBYLHZV DSS FRQILJXUHBDGPLQ DSS UHWXUQDSS 2UJDQL]HVHXFyGLJR )ODVN(PSW\
  9. 7UDWDPHQWRGHHUURV+773 GHIFRQILJXUHBHUURUBKDQGOHUV DSS  #DSSHUURUKDQGOHU  GHIXQDXWKRUL]HG HUURU  IODVNIODVK

    X 9RFrSUHFLVDHVWDUORJDGR UHWXUQIODVNUHGLUHFW XUOBIRU ORJLQ QH[W UHTXHVWX BH[WHUQDO 7UXH #DSSHUURUKDQGOHU  GHISDJHBQRWBIRXQG HUURU  UHWXUQUHQGHU HUURUVSDJHBQRWBIRXQGKWPO  #DSSHUURUKDQGOHU  GHIVHUYHUBHUURUBSDJH HUURU  UHWXUQUHQGHU HUURUVVHUYHUBHUURUKWPO 
  10. 7HVWHVXDDSOLFDomR )ODVN7HVWLQJ IURPIODVNH[WWHVWLQJLPSRUW7HVW&DVH IURPMXVEUDVLOZHEPDLQLPSRUWFUHDWHBDSS FODVV$SS7HVW 7HVW&DVH  GHIFUHDWHBDSS VHOI 

    FRQILJ ^ 7(67,1* 7UXH` UHWXUQFUHDWHBDSS FRQILJ GHIWHVWBLQGH[ VHOI  UHVSRQVH VHOIFOLHQWJHW  VHOIDVVHUW UHVSRQVH VHOIDVVHUW7HPSODWH8VHG LQGH[KWPO WLWOH VHOIJHWBFRWH[WBYDULDEOH WLWOH VHOIDVVHUW(TXDO 0\3DJH WLWOH
  11. &ULHVXDVH[WHQV}HV IURPMXVEUDVLOVHDUFKLPSRUWSRRO IURPWKULIWFOLHQWLPSRUW7KULIW&OLHQW FODVV6HDUFK&OLHQW 7KULIW&OLHQW  GHIBBLQLWBB VHOIDSS 1RQH 

    7KULIW&OLHQWBBLQLWBB VHOI VHOIDSS 1RQH LIDSSLVQRW1RQH VHOILQLWBDSS DSS GHILQLWBDSS VHOIDSS  LIQRWDSSFRQILJ> 7(67,1* @ VHOISRRO SRRO&RQQHFWLRQ3RRO VHUYHUBOLVW DSSFRQILJ> 6($5&+B6(59(56 @ WLPHRXW DSSFRQILJ> 6($5&+B7,0(287 @ SRROBVL]H DSSFRQILJ> 6($5&+B322/B6,=( @ VHOIDSS DSS
  12. 8VRPDVVLYRGHFDFKH IURPIODVNH[WLPSRUWFDFKH IURPMXVEUDVLOQHWZRUNLPSRUWDSL #FDFKHPHPRL]H GHIJHWBREMHFWBRUB LGGRFXPHQWBW\SH  QRYDOLGLG LILGDERUW 

    BREMHFW DSLJHW'RFXPHQW GRFXPHQWBW\SHLG GRFXPHQWQRWIRXQG LIBREMHFWLV1RQHDERUW  UHWXUQBREMHFW
  13. 0RGXODUL]HXVDQGR%OXHSULQWV LPSRUWIODVN IURPMXVEUDVLOZHEXWLOVVKRUWFXWVLPSRUW JHWBREMHFWBRUB ES IODVN%OXHSULQW MXULVSUXGHQFLD BBQDPHBB #ESURXWH LQWLG!VOXJ!

    GHIYLHZ LGVOXJ  MXULV JHWBREMHFWBRUB LG MXULVSUXGHQFLD WHPSODWH  MXULVSUXGHQFLDYLHZKWPO UHWXUQUHQGHU WHPSODWHMXULV MXULV DSSUHJLVWHUBEOXHSULQW ESXUOBSDWK MXULVSUXGHQFLD