-- Practice Final
Trey Smith, Luksawee Phansri, Sachin Shah
7)
7) <?xml version="1.0"?>
<!DOCTYPE wedding invitation
[
<!ELEMENT note (from, date, people)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT people (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Dan and Ann</from>
<date>Feb 28, 201</date>
<people>a, b, c, d</people>
</note>
Problem 8
a) CK10: The problem that servers face when they have over 10,000 clients and a limited thread pool. Inability to handle all incoming requests
b) REST: A way for clients to communicate with one another via http. REST APIs allow for GET, POST, UPDATE, and DELETE requests to be performed by applications to their backend.
c) Promise:
const axios = require('axios');
let getData = new Promise(function(resolve,reject) {
const isDataReceived = axios.get('https://api.github.com/users/mapbox');
if(isDataReceived){
resolve('Data was received');
}
else {
reject('Data was not received');
}
});
Trey Smith, Luksawee Phansri, Sachin Shah
7)
7) <?xml version="1.0"?>
<!DOCTYPE wedding invitation
[
<!ELEMENT note (from, date, people)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT people (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Dan and Ann</from>
<date>Feb 28, 201</date>
<people>a, b, c, d</people>
</note>
Problem 8
a) CK10: The problem that servers face when they have over 10,000 clients and a limited thread pool. Inability to handle all incoming requests
b) REST: A way for clients to communicate with one another via http. REST APIs allow for GET, POST, UPDATE, and DELETE requests to be performed by applications to their backend.
c) Promise:
const axios = require('axios');
let getData = new Promise(function(resolve,reject) {
const isDataReceived = axios.get('https://api.github.com/users/mapbox');
if(isDataReceived){
resolve('Data was received');
}
else {
reject('Data was not received');
}
});