My thoughts as an enterprise Java developer.

Saturday, June 18, 2022

NetFlix: Active-Active for Multi-Regional Resiliency

 

https://netflixtechblog.com/active-active-for-multi-regional-resiliency-c47719f6685b

All services available in region so no cross-region requests

Direct to region by location instead of latency to maintain control

Service to direct request: Zuul

Error request at start when downstream won’t be able to handle. Dynamic with scaling.

Test abilities of new services with production load

Writes need to tell all caches to invalidate. Can a new request happen before the data is synced?

Tools to deploy the same code to multiple regions

Multiple levels of chaos: service, availability zone, region, region connection. Some levels will cause total loss of service

Automatic failover

Even though this is 9 years old, it is still rare.

Does the type of Netflix data change make it easier for them? If a customer gets stale data it probably doesn't have a large impact.

Sunday, February 20, 2022

Minimize scope

 "Minimizing the scope of your objects gives the highest chance for escape analysis to be applied and avoid creating objects in the heap, creating them on the stack instead, which avoids the GC overhead of the object."

http://www.javaperformancetuning.com/news/newtips254.shtml

Saturday, January 22, 2022

Capture, Compute, Create

These are my notes from a talk.

Examples of coming technology:

  • Shoes customized to person, foot, and purpose
  • Machine Learning to produce chair based on requirements
  • Machine Learning to learn about Rembrandt paintings and creating new painting base on attributes requested
  • Self-driving car aggressively driving
  • Watson computer on Jeopardy. Now better at disease diagnosis and fits in a watch.
  • Machine Learning creating non-disclosure agreements
  • Machine Learning creating music base on requested parameters
  • Machine Learning to generate person model for catalogs. 5 faces, 10 poses for $800
  • Machine Learning to design a building customized to each person’s preferences. Some table rotated at a weird angle which gave more daylight.
  • E-Rosery to track prayers by sign of cross
  • Augmented reality to allow buying anything in a concert (in Japan?)

 Success in the past can limit future creativity

 Flow: clear goals, skill == difficulty, feedback, concentrate

 Good question, diagram, activity

 “Things will never move as slowly as today”

 Facebook meetings limited to 30 minutes