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

Go - Iniciando e por que usar

Go - Iniciando e por que usar

O objetivo da apresentação é mostrar os passos para quem está iniciando em Go e como ele funciona, e é claro mostrando como fazermos nosso primeiro go run e go build em uma api usando net/http.
O por que usar Go é uma apresentação que tem como foco apresentar as características e os pontos importantes que devemos saber quando assunto é desenvolvimento web utilizando Go.

Jefferson Otoni Lima

November 19, 2020
Tweet

More Decks by Jefferson Otoni Lima

Other Decks in Technology

Transcript

  1. https://s3wf.com
    @jeffotoni
    DevOps bootcamp
    Jefferson Otoni
    by estabilis
    Iniciando e por que usar
    https://www.engdb.com.br
    https://engdb.com.br

    View Slide

  2. View Slide

  3. @jeffotoni
    Iniciando

    View Slide

  4. @jeffotoni

    View Slide

  5. @jeffotoni
    - Compilada e estática
    - Gc (Garbage Collector)
    - Paradigma Concorrente
    - Tipagem estática
    - Semântica é clara
    - Sintaxe é limpa
    - É de uso Geral
    - Plataformas: Linux, Mac,
    FreeBSD, Windows

    View Slide

  6. @jeffotoni
    Paradigma
    concorrente
    Compilada
    estaticamente
    Tipagem
    estática
    Multi
    Plataformas
    Retrocompa-
    tibilidade

    View Slide

  7. @jeffotoni
    Comunidade
    Telegram
    https://t.me/go_br
    https://t.me/go_bh
    https://t.me/golangcwb
    Slack
    https://gophers.slack.com
    (members >~45k)
    GopherCon Brasil 2020
    https://2020.gopherconbr.org
    Wiki Conferencias
    https://github.com/golang/go/wiki/Conferences
    Meetup
    https://www.meetup.com/go-belo-horizonte
    https://www.meetup.com/pt-BR/golangbr
    https://www.meetup.com/pt-BR/Women-Who-Go-Sampa
    https://www.meetup.com/pt-BR/Golang-Campinas/
    https://www.meetup.com/pt-BR/golang-poa/
    https://www.meetup.com/pt-BR/GolangCWB/

    View Slide

  8. @jeffotoni
    Install

    View Slide

  9. @jeffotoni

    View Slide

  10. @jeffotoni
    Effective

    View Slide

  11. @jeffotoni

    View Slide

  12. @jeffotoni
    Frequently ASked

    View Slide

  13. @jeffotoni

    View Slide

  14. @jeffotoni
    awesome

    View Slide

  15. @jeffotoni

    View Slide

  16. @jeffotoni
    Tour

    View Slide

  17. @jeffotoni

    View Slide

  18. @jeffotoni
    concorrência != paralelismo

    View Slide

  19. @jeffotoni

    View Slide

  20. @jeffotoni
    Por que usar

    View Slide

  21. View Slide

  22. @jeffotoni
    Arquiteturas

    View Slide

  23. arquitetura
    @jeffotoni
    Go Go Goc
    o
    mongo rethinkDB postgres
    app
    browsers

    View Slide

  24. Dados do Game
    Pub/Sub Cloud Function
    Cloud Function
    Cloud Function
    Cloud Function
    @jeffotoni

    View Slide

  25. Aws Sqs Lambda
    Lambda
    Lambda
    Lambda
    Dados do game
    @jeffotoni

    View Slide

  26. Pub/Sub
    @jeffotoni
    RabbitMQ
    Sqs
    kubemq.io

    View Slide

  27. nossa arquitetura
    gokafka.poc
    @jeffotoni

    View Slide

  28. @jeffotoni

    View Slide

  29. @jeffotoni

    View Slide

  30. @jeffotoni
    serverless

    View Slide

  31. type Serverless struct { Web *Event}

    View Slide

  32. @jeffotoni
    Data Bases

    View Slide

  33. postgres
    BigQuery
    Redis
    RethinkDB
    mongo
    @jeffotoni
    Spanner

    View Slide

  34. @jeffotoni
    microservices

    View Slide

  35. @jeffotoni
    service service service
    service service service
    service service service
    kubeMQ, redpanda, Kafka, nginx, traefik etc.

    View Slide

  36. @jeffotoni
    25 Keywords
    break default func interface select
    case defer go map struct
    chan else goto package switch
    const fallthrough if range type
    continue for import return var

    View Slide

  37. @jeffotoni
    Goroutines

    View Slide

  38. @jeffotoni
    pprof profilling
    https://blog.golang.org/pprof

    View Slide

  39. @jeffotoni
    Ref: https://eltonminetto.dev/post/2020-04-08-golang-pprof

    View Slide

  40. https://golang.org/pkg/testing
    @jeffotoni

    View Slide

  41. Thanks := &Obrigado{...}
    Obrigado...
    github.com/jeffotoni
    instagram.com/jeffotoni
    https://t.me/devopsbh
    https://t.me/go_br
    https://t.me/awsbrasil
    linkedin.com/in/jeffotoni/

    View Slide