If it is really static thing, you can serialize it and pass to Bolt's constructor. If you don't want to spend serialization cost, you can store it to file (and include it to resources of jar) and load it from preparation of Bolt. If you want to have small jar, you can use external storage. (RDB, HDFS, NOSQL, and so on)
Hope this helps. Thanks. Jungtaek Lim (HeartSaVioR) 2015년 5월 28일 목요일, Ashish Soni<[email protected]>님이 작성한 메시지: > I need to load some static data inside Bolts and cached it , any > recommendation as what is the best way to do it. > > Thanks, > -- Name : 임 정택 Blog : http://www.heartsavior.net / http://dev.heartsavior.net Twitter : http://twitter.com/heartsavior LinkedIn : http://www.linkedin.com/in/heartsavior
