NodeJS → Go

Alan Braithwaite

@Caust1c

github.com/abraithwaite

Segment Inc

キーボード: HHKB ;-)

Why?

Performance

Security

Reliability

Flexibility

Productivity

The architecture

Verification of New API

Challenges Encountered

  • Javascript is loosely typed
    • Falsey
    • Null
    • Undefined
  • Unknown fields must be preserved
    • github.com/tidwall/gjson

Challenges Encountered

Timestamps

Summary

Rewrites are challenging

 

Avoid them if possible

 

Setup a rock solid validation system against real customer data

Go made it easier ;-)

Thank you

Alan Braithwiate
Segment
@Caust1c
 

https://github.com/abraithwaite

https://segment.com

Javascript → Go Lightning

By Alan Braithwaite

Javascript → Go Lightning

  • 1,567