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

LiveView goes k6

LiveView goes k6

Sebastian

April 20, 2023
Tweet

More Decks by Sebastian

Other Decks in Programming

Transcript

  1. LiveView goes k6
    ElixirConf EU 2023
    @Sgoettschkes
    https://www.pexels.com/photo/white-android-tablet-turned-on-displaying-a-graph-186464/

    View Slide

  2. View Slide

  3. View Slide

  4. K6

    View Slide

  5. K6

    View Slide

  6. besughi/elixir-k6
    ● Download K6
    ● Create mix tasks to run K6
    ● Templates for rest/graphql/liveview/…

    View Slide

  7. K6 with LiveView
    view.send(
    'event',
    {
    type: 'hook',
    event: 'chart-init',
    value: { id: 'update-g11' }
    },
    (r) => {
    // handle response
    });

    View Slide

  8. K6 with LiveView
    (response) => {
    check(response, {
    'Pathway list': trycatch((r) =>
    r.payload.response.diff.c['3']['0']['3']['6']['1']['9'].d[22][0] ===
    'something')
    });
    }

    View Slide

  9. K6 with LiveView
    (response) => {
    check(response, {
    'Pathway list': trycatch((r) =>
    r.payload.response.diff.c['3']['0']['3']['6']['1']['9'].d[22][0] ===
    'something')
    });
    }
    😱

    View Slide

  10. K6 with LiveView
    Get in touch!

    View Slide

  11. https://www.dropbox.com/s/6z5aiwa8l09g2pa/86H.jpg

    View Slide