database - How to implement web applications more efficiently? -
i've been developing website using jsf & primefaces. @ time of development, noticed there're 2 bottlenecks web applications. correct me if i'm wrong.
the bottlenecks are:
i've used hibernate framework persistence layer. if change occurs in database, there's no way reflect in scoped beans. hibernate has dynamic-update attribute helps update affected records of table [at time of persisting]. i've not found similar kind of mechanism can updated dao. here, developer has take responsibility of updating them using
session.refresh()method, reloads entire object tree database table. so,for each small database changes, think caching functionality of dao [in hibernate] missed since every time they're evicted session cache. in word, database updates doesn't trigger dao updates.after updating dao, if want reflect changes in view level, had take of primeface sockets [primepush] since refreshing pages every time isn't implementation & primeface socket allows updating of specific ids. so, means each dao fields, i've take of many different primeface sockets, each 1 having unique channel. sending messages different sockets has done developer in bean codes.
so, question how these can handled in efficient way? there other technologies/framework handles these issues developer doesn't have worry about?
ideally shoule doing :
hibernate persistence layer (have dao performing crud operations)
managed beans access dao
view (primefaces) using backbean updating view.
you don't need primepush or something. should refreshed actions in views
Comments
Post a Comment