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

Arquiteturas Executáveis

Arquiteturas Executáveis

Everton Ribeiro

November 08, 2014
Tweet

More Decks by Everton Ribeiro

Other Decks in Programming

Transcript

  1. Entregar para ontem a solução que atenda todos os requisitos

    funcionais. Garantir que seja lá o que o dev entregue: rode, seja seguro e escale. (ontem)
  2. AZK

  3. systems({ api: { image: "ruby", depends: [ "mysql" ], //...

    }, mysql: //..., }); arquitetura executável
  4. $ cd ~/blog $ azk init azk: System ruby/rails detected:

    ‘blog’ azk: Required system mysql detected in ‘blog' azk: ‘Azkfile.js’ generated ! Tip: Adds the `.azk` in .gitignore echo ‘.azk’ >> .gitignore
  5. // Azkfile.js (JavaScript DSL) systems({ blog: { depends : [

    "mysqldb" ], image : "azukiapp/ruby", provision : [ "bundle install vendor/bundler" ], command : "rackup -s thin", mounts : { "/azk/#{manifest.dir}": path(".") }, scalable : { default: 3 }, http: { domains: [ "#{system.name}.#{azk.defaul_domain}" ], }, env : [ RUBY_ENV: "dev" ], }, mysqldb: { image : "azukiapp/mysql", mounts: { "/data/db": persistent("data") }, }, });
  6. $ azk start ! Get images: - azukiapp/mysql - azukiapp/ruby

    ! Starting: - db - blog (instances: 3) (linked with: db)
  7. big.com - Front - Databases: - Mysql - Redis -

    Workers - API - Proxy payment - Facebook auth - etc…