Profile

Cover photo
Mark Petrovic
Attended Oklahoma State University–Stillwater
Lived in Petaluma, CA
276 followers|385,064 views
AboutPosts

Stream

Mark Petrovic

Discussion  - 
Using make to articulate Go builds. Sun, May 10, 2015. Go best practices indicate that code and builds be kept simple. But sometimes we need a bit more in the way of declaratively configured builds. Often one will see build instructions containing nothing more than $ go test $ go build ...
3
2
Vick Khera's profile photoMark Petrovic's profile photoLitixsoft GmbH's profile photoMauro Risonho de Paula Assumpção's profile photo
5 comments
 
+Vick Khera You make a fair point.  Go builds so quickly that I never considered optimizing to rebuild only when .go files change.
Add a comment...

Mark Petrovic

Shared publicly  - 
 
 
(2013) Rewriting a large C++ system in Go. This Google team needed to make major changes to a 0.5M LOC shared C++ code base, which was a daunting prospect. Instead they rewrote the 20% they needed in Go (21K LOC!) and had it running in production in under 5 months, including several major new features.
17 comments on original post
1
1
Matt Dragon's profile photo
Add a comment...

Mark Petrovic

Discussion  - 
 
How to sense the root element name in an XML document:

http://play.golang.org/p/AbJqatHs8q
4
Mark Petrovic's profile photoMarty Glaubitz's profile photo
2 comments
 
"Mhm... smells like an Resources tag" xD
Add a comment...

Mark Petrovic

Shared publicly  - 
 
I believe this is a love song.  The great Randy Meisner, live 2002.  And I hear the Allman Brothers guitar, and Roy Orbison's voice.

http://open.spotify.com/track/2hY5MJzp1pQLszQsH8MCaV
1
Add a comment...

Mark Petrovic

Shared publicly  - 
 
Uncommonly good set of articles on Kubernetes network design.

http://www.dasblinkenlichten.com/kubernetes-101-networking/
One of the reasons that I’m so interested in docker and it’s associated technologies is because of the new networking paradigm it brings along with it.  Kubernetes has a unique (and pretty awesome) way of dealing with these networking challenges but it can be hard to understand at first glance.  My goal in this post …
2
1
Matt Dragon's profile photo
Add a comment...

Mark Petrovic

Shared publicly  - 
 
1966 called.  Said listen to this.

https://www.youtube.com/watch?v=v9Ys1nTdEjE
1
Add a comment...
Have him in circles
276 people
Marcin Skarbek's profile photo
Marcy Harbut's profile photo
Ash McConnell's profile photo
Guillaume Laforge's profile photo
Brian Yoder's profile photo
SDD Conference's profile photo
Aleksandar Gargenta's profile photo
Mick B (ℹ Floyd)'s profile photo
Anya Foster's profile photo

Communities

Mark Petrovic

Shared publicly  - 
Using make to articulate Go builds. Sun, May 10, 2015. Go best practices indicate that code and builds be kept simple. But sometimes we need a bit more in the way of declaratively configured builds. Often one will see build instructions containing nothing more than $ go test $ go build ...
1
Add a comment...

Mark Petrovic

Discussion  - 
 
I'm looking to study a few implementations of http retries for idempotent operations.  Do you have any trusted favorites?

Thanks.
1
Randall Farmer's profile photo
 
For general approach, exponential backoff is a way to avoid banging too hard on an overloaded service; it can reduce how much effort clients spend retrying, and how much worse the retries make the overload. The AWS folks talk about one use case here: http://www.awsarchitectureblog.com/2015/03/backoff.html

I don't know enough to recommend implementations, but there seem to be a few: https://www.google.com/search?q=exponential+backoff+golang

An exp. backoff rule exists in AWS's Go SDK, but doesn't look trivial to extract, e.g. see: https://github.com/awslabs/aws-sdk-go/search?utf8=%E2%9C%93&q=retryrules

Two app-specific things to look out for are 1) don't retry on non-retriable failures like incorrect auth credentials, because then you create needless latency and load redoing something that will fail anyway (discussed at http://docs.aws.amazon.com/general/latest/gr/api-retries.html), 2) beware of multiple layers of retries (http://blogs.msdn.com/b/oldnewthing/archive/2005/11/07/489807.aspx), e.g., 3 retries at low, intermediate, and top layers of the stack could yield, whoops, 27 retries.
Add a comment...

Mark Petrovic

Shared publicly  - 
 
Curious. And cool.
 ·  Translate
1
Add a comment...

Mark Petrovic

Shared publicly  - 
1
Add a comment...

Mark Petrovic

Shared publicly  - 
 
If your volume goes to 11:

https://www.youtube.com/watch?v=A0vQpkry2dE
1
Add a comment...

Mark Petrovic

Shared publicly  - 
 
My path out of Africa, according to the Genographic Project.
4
Craig Landry's profile photoMark Petrovic's profile photo
2 comments
 
Exactly.  Several years ago I participated.  Pretty thought provoking stuff.
Add a comment...
People
Have him in circles
276 people
Marcin Skarbek's profile photo
Marcy Harbut's profile photo
Ash McConnell's profile photo
Guillaume Laforge's profile photo
Brian Yoder's profile photo
SDD Conference's profile photo
Aleksandar Gargenta's profile photo
Mick B (ℹ Floyd)'s profile photo
Anya Foster's profile photo
Communities
Education
  • Oklahoma State University–Stillwater
    Ph.D., Physics
    A few years of solid state laser materials.
Basic Information
Gender
Male
Story
Introduction
software developer
a lot of Java
and now a lot of Go

AT&T IBM Sprint Earthlink Sun Oracle Marketlive Xoom
Bragging rights
Two lovely daughters who made Cal Berkeley a better place by being there and one beautiful wife who made all our lives possible.
Work
Occupation
Software developer
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Petaluma, CA - San Geronimo, CA - Danville, CA - Pasadena, CA - Kansas City, MO - Yorktown Heights, NY - Stillwater, OK
Links
Contributor to