Posts

REST call from Lambda often extremely slow

Image
4 I'm not sure if the question is correct here or would better fit on Super User. However since I think I may did something wrong with my code I try it here. I created a small proxy lambda function to invoke my REST API. I'm using node.js and the request package. Here is my code: exports.handler = function (request, context) { require('request').post({url: 'https://example.com/foo/bar', json:request, timeout:1000}, function(error, response, body){ if(error) { console.log("Something went wrong:n" + JSON.stringify(error, null, 2)); context.succeed({failed:true}) } else { console.log("Returning remote response:n" + JSON.stringify(body, null, 2)); context.succeed(body); } }); co...

BNSF Railway

Image
This article is about the freight railroad company. For the Chicago area Metra commuter rail line operated by the company, see BNSF Railway (Metra). BNSF Railway System map (trackage rights in purple) BNSF 8013 at Dallas, Texas, 20 May 2014, awaiting re-crew. Reporting mark BNSF Locale Midwest United States, Western United States, Manitoba, Saskatchewan, British Columbia, Eastern United States Dates of operation December 31, 1996–Present Predecessor List Atchison, Topeka and Santa Fe Railway Burlington Northern Railroad Track gauge 4 ft  8   1 ⁄ 2  in ( 1,435 mm ) Length 32,500 mi (52,300 km) Headquarters Fort Worth, Texas Website www.bnsf.com The BNSF Railway Company (reporting mark BNSF ) is the largest freight railroad network in North America. One of eight North American Class I railroads, BNSF has 44,000 employees, 32,500 miles (52,300 km) of track in 28 states, and more than 8,000 locomotives. [1] It has three transcon...