# \#modeling

**URL:** https://forum.elixirforum.com/tag/modeling/2535.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [TLA+ With Elixir](https://forum.elixirforum.com/t/tla-with-elixir/34152)

<div class="topic-metadata">

**Author:** [@Onor.io](https://forum.elixirforum.com/u/Onor.io)\
**Replies:** 11\
**Last updated:** [October 27, 2022, 1:23pm UTC](https://forum.elixirforum.com/t/tla-with-elixir/34152 "2022-10-27T13:23:52Z")

</div>

Has anyone working with Elixir used TLA+ to model their code? It seems as if it’d be a very natural fit and I am curious if anyone has any feedback on that combination.

---

## [Using defprotocol with defstruct for "data inheritance"](https://forum.elixirforum.com/t/using-defprotocol-with-defstruct-for-data-inheritance/50453)

<div class="topic-metadata">

**Author:** [@GPrimola](https://forum.elixirforum.com/u/GPrimola)\
**Replies:** 1\
**Last updated:** [September 25, 2022, 6:04pm UTC](https://forum.elixirforum.com/t/using-defprotocol-with-defstruct-for-data-inheritance/50453 "2022-09-25T18:04:18Z")

</div>

Hey guys, I was trying Protocols and I saw a possibility I’ve never saw before, the use of defprotocol with defstruct. I haven’t gone too much further on the implications, but the code below works fine. defprotocol Fo…

---

## [Software architecture (Domain Modelling)](https://forum.elixirforum.com/t/software-architecture-domain-modelling/48261)

<div class="topic-metadata">

**Author:** [@laiboonh](https://forum.elixirforum.com/u/laiboonh)\
**Replies:** 7\
**Last updated:** [June 8, 2022, 4:58am UTC](https://forum.elixirforum.com/t/software-architecture-domain-modelling/48261 "2022-06-08T04:58:27Z")

</div>

Hi all, First to set the stage. Say we have an app that represents a Shop that sells Books amongst other things. Books have differential pricing. So we have chosen to design DB schema as two tables. Books and BookValues …

---

## [View Models/Data Helpers/State Management](https://forum.elixirforum.com/t/view-models-data-helpers-state-management/37807)

<div class="topic-metadata">

**Author:** [@sodapopcan](https://forum.elixirforum.com/u/sodapopcan)\
**Replies:** 5\
**Last updated:** [February 26, 2021, 4:12pm UTC](https://forum.elixirforum.com/t/view-models-data-helpers-state-management/37807 "2021-02-26T16:12:39Z")

</div>

In the 15 minute twitter video, Chris broadcasts the updated Post event with the entity attached which is then simply appended to the list of Posts. This is a simple operation but it does create a little bit of duplicat…

---

## [How to model nested categories?](https://forum.elixirforum.com/t/how-to-model-nested-categories/37087)

<div class="topic-metadata">

**Author:** [@Laetitia](https://forum.elixirforum.com/u/Laetitia)\
**Replies:** 11\
**Last updated:** [January 29, 2021, 7:21pm UTC](https://forum.elixirforum.com/t/how-to-model-nested-categories/37087 "2021-01-29T19:21:08Z")

</div>

Hi everybody, I want to implement a system with categories and subcategories and subsub and subsubsub… lol. ie: the category A has 2 subcategories: B and C and C have a sub-category D. The deep of the nesting is not r…

---

## [Building a process to consume an HTTP2 stream of events and handle graceful shutdown during testing](https://forum.elixirforum.com/t/building-a-process-to-consume-an-http2-stream-of-events-and-handle-graceful-shutdown-during-testing/34736)

<div class="topic-metadata">

**Author:** [@drewolson](https://forum.elixirforum.com/u/drewolson)\
**Replies:** 5\
**Last updated:** [October 5, 2020, 3:35pm UTC](https://forum.elixirforum.com/t/building-a-process-to-consume-an-http2-stream-of-events-and-handle-graceful-shutdown-during-testing/34736 "2020-10-05T15:35:18Z")

</div>

I’m attempting to model the following problem with a process (or set of processes) – I need to consume an HTTP2 streaming API and enqueue Oban jobs based on the events from this API. I’m using Oban for database-backed j…
