Tuesday, September 5, 2017

Contentful API and memcached

Contentful API and memcached: Some crazy gotchas

  1. Don't use the default transcoder.  Everything NEEDS to be [Serializable] which might be sort of impossible.  Switched over to that Install-Package Enyim.Memcached.Transcoders.Json -Version 1.0.0 transcoder and things were like gravy.
  2. If you are having trouble, execute the MemcachedClient.ExecuteStore method because it returns an object that gives you error messages.  Please try it.
  3. AWS ElastiCache is not accessible from outside of AWS without using a NAT Instance and some other magic.  Don't do it.  Just set up a publicly accessible instance and move on with you life(for development only of course).
There are probably some more, but I have forgotten.  It's been rough out there.