Framework and database adapter with Hexagonal Architecture and DCI pattern
Asked Answered
S

1

7

I try to design a web based application in Ruby. I have developed a simple core application implementing DCI paradigm in hexagonal architecture without framework and database. There are small hexagons in core hexagon and adapters such as web, database, logs etc. Every hexagons run itself without database and framework. How can I provide relation with database models and entity classes as independent with database in this approach. I want to change framework from Rails to Sinatra in future or database. In fact, how can I implement database adapter or framework adapter that is exactly isolated rails and mongodb in this core Hexagon. Any ideas?

Sower answered 3/4, 2013 at 13:58 Comment(1)
DCI is not a pattern it's a paradigm just like OO is not a pattern but a paradigmWeed
B
4

What about ROM (Ruby Object Mapper).

There is also MiniMapper and DataMappify.

Brandonbrandt answered 6/9, 2013 at 15:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.