Running an API 24/365

  • 626 views
Uploaded on

How to keep a popular API up an running 24 hours a day, 365 days a year. …

How to keep a popular API up an running 24 hours a day, 365 days a year.

Presentation by Federico Hernandez, Västtrafik from Nordic APIs Copenhagen in May 2013.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
626
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 24/7
  • 2. 24/7/365
  • 3. 24/7/365
  • 4. 24/365
  • 5. 24/365(24/7/52)
  • 6. WEB 200 000APP 700 000API 700 000(+300 000)
  • 7. Write program that doone thing anddo it wellUnix philosophyDoug McIlroy
  • 8. Eric Raymond’s 17 UnixRules...Rule of ModularityRule of CompositionRule of SeparationRule of SimplicityRule of ParsimonyRule of Robustness...
  • 9. $ curl localhost:5432/cmi/status{"nodeTime": "2013-05-20T13:41:52","activeSubscriptions": 892,"totalNumberOfSubscribers": 1019,"totalNumberOfSubscriptions": 1801,"sentMessagesPerMinute": 0,"tsConnections": ["HafasServerClient [be1/123.456.789.123:40301], managed connections: 232","HafasServerClient [be1/123.456.789.123:40302], managed connections: 251","HafasServerClient [be2/123.456.789.125:40301], managed connections: 234","HafasServerClient [be2/123.456.789.125:40302], managed connections: 212"]}
  • 10. Statistik för Sun 2013-05-19============================Antal sökningar---------------Searches:  918967Klienter--------WEB:       84957   (9.245%)IPHONE:   414562   (45.112%)IPAD:     1554    (0.169%)ANDROID: 110725  (12.049%)REST:     306560  (33.359%)XHTML:     609    (0.066%)
  • 11. Typ av förfrågningar--------------------XMLCON (till/från eller till och från address):   347464   (37.810%)XMLSTATIONBOARD (nästa tur):                       326501   (35.529%)XMLCON-BASIC (till och från hållplats):           117693   (12.807%)XMLLOCATING (sökning med gps från mobilen):  110491   (12.023%)XMLJOURNEY:                                       6815     (0.742%)XMLTARIFF (prisförfrågning):                       5678     (0.618%)XMLGIS:                                           3871     (0.421%)XMLSIMPLEHANDLESTRING (SMS):                       454      (0.049%)
  • 12. Svarstider för beräkningar--------------------------0.00s:  657046  (71.498%)0.01s:  48629   (5.292%)0.02s:  20615   (2.243%)0.03s:  25596   (2.785%)0.04s:  20940   (2.279%)0.05s:  4842    (0.527%)0.06s:  8245    (0.897%)0.07s:  11930   (1.298%)0.08s:  5899    (0.642%)0.09s:  4966    (0.540%)---0.0s:   808708  (88.002%)0.1s:   99959   (10.877%)0.2s:   4214    (0.459%)0.3s:   1656    (0.180%)0.4s:   1212    (0.132%)0.5s:   928     (0.101%)0.6s:   679     (0.074%)0.7s:   446     (0.049%)0.8s:   242     (0.026%)0.9s:   181     (0.020%)---0s:     918225  (99.919%)1s:     652     (0.071%)2s:     72      (0.008%)3s:     4       (0.000%)4s:     1       (0.000%)5s:     2       (0.000%)8s:     1       (0.000%)32s:    1       (0.000%)
  • 13. Svarstider för beräkningar--------------------------0.00s:  657046  (71.498%)0.01s:  48629   (5.292%)0.02s:  20615   (2.243%)0.03s:  25596   (2.785%)0.04s:  20940   (2.279%)0.05s:  4842    (0.527%)0.06s:  8245    (0.897%)0.07s:  11930   (1.298%)0.08s:  5899    (0.642%)0.09s:  4966    (0.540%)---0.0s:   808708  (88.002%)0.1s:   99959   (10.877%)0.2s:   4214    (0.459%)0.3s:   1656    (0.180%)0.4s:   1212    (0.132%)0.5s:   928     (0.101%)0.6s:   679     (0.074%)0.7s:   446     (0.049%)0.8s:   242     (0.026%)0.9s:   181     (0.020%)---0s:     918225  (99.919%)1s:     652     (0.071%)2s:     72      (0.008%)3s:     4       (0.000%)4s:     1       (0.000%)5s:     2       (0.000%)8s:     1       (0.000%)32s:    1       (0.000%)
  • 14. Federico Hernandezfh@vasttrafik.se@feddeco@vasttrafikapi