You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sdap.apache.org by "Thomas G Loubrieu (Jira)" <ji...@apache.org> on 2020/06/17 00:38:00 UTC

[jira] [Commented] (SDAP-252) concurrent requests squashed into single response

    [ https://issues.apache.org/jira/browse/SDAP-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17137999#comment-17137999 ] 

Thomas G Loubrieu commented on SDAP-252:
----------------------------------------

Test case with javascript code:

const fetch = require('node-fetch');

 

async function fetchAndDisplaySampleData(url) {

    const response = await fetch(url);

    const text = await response.text();

    const obj = JSON.parse(text);

    console.log(obj.data[0][0]);

    console.log(obj.data[1][0]);

    console.log(obj.data[2][0]);

    console.log('...');

}

 

fetchAndDisplaySampleData(

    '[http://podaac-devwhale1.jpl.nasa.gov:9999/test-tools/sdap2/nexus/timeAvgMapSpark?ds=mur25-jpl-l4-glob-v42-analysed-sst&]' +

    'minLon=-135&maxLon=-130&minLat=40&maxLat=50&startTime=1578441600&endTime=1578700800'

);

fetchAndDisplaySampleData(

    '[http://podaac-devwhale1.jpl.nasa.gov:9999/test-tools/sdap2/nexus/timeAvgMapSpark?ds=mur25-jpl-l4-glob-v42-analysed-sst&]' +

    'minLon=130&maxLon=135&minLat=40&maxLat=50&startTime=1578441600&endTime=1578700800'

);

> concurrent requests squashed into single response
> -------------------------------------------------
>
>                 Key: SDAP-252
>                 URL: https://issues.apache.org/jira/browse/SDAP-252
>             Project: Apache Science Data Analytics Platform
>          Issue Type: New Feature
>            Reporter: Thomas G Loubrieu
>            Assignee: Thomas G Loubrieu
>            Priority: Major
>         Attachments: simple_test.py
>
>
> 2 differents requests are sent at the same time in a parallel or asynchornous mode.
> the responses received for each request are identical and correspond to one or the other of the launched requests.
> The case was produced with javascript code and python.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)