go - What is the advantage of using Gorilla sessions custom backend? -


i want use redis session management.
can't figure out advantage of using redis custom back-end gorilla sessions package on using directly?

link gorilla session package: http://www.gorillatoolkit.org/pkg/sessions

gorilla sessions provides means wire storage system session management provided adhere interface provided. currently, give 2 stores out of box. 1 filesystemstore adheres interface stores , retrieves session based data on server's filesystem. cookiestore option, reads , writes browsers built-in cookie system accomplish same thing using means.

gorilla sessions has nothing redis, knowing this, can use own session storage gorilla provided build redisstore adheres gorilla sessions store interface. depends on capability , looking in session store system. gorilla gives 2 options out of box option providing own suits app.

also, if around building redisstore can work gorilla sessions consider making open-source since great addition go community.

you have evaluate needs , performance requirements of app figure out storage system use. why redis possibly make sense? if building app heavy writes/modifications , data needs persist redis known scale app long utilize properly. redis backed session perform if know doing.

last point, should redis involved consider using wonderful go package: redigo redis client library.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -