# Secrets of Babylon.js

**URL:** <https://forum.babylonjs.com/t/secrets-of-babylon-js/27032>\
**Category:** Tutorials and tips\
**Created:** [January 23, 2022, 3:37pm UTC](https://forum.babylonjs.com/t/secrets-of-babylon-js/27032 "2022-01-23T15:37:04Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ecoin](https://avatars.discourse-cdn.com/v4/letter/e/8e7dd6/32.png) [@ecoin](https://forum.babylonjs.com/u/ecoin)\
**Post date:** [February 10, 2022, 1:58pm UTC](https://forum.babylonjs.com/t/secrets-of-babylon-js/27032/12 "2022-02-10T13:58:32Z")

</div>

> [@Anupam\_Das](#):
>
> proper state management, observables and best practices would be helpful

This is what I live by (I’m very pedantic about getting the architectural design right). Started writing the first tutorial on [production optimization of Babylon 3D views](https://3designer.app/best/babylon-nextjs-setup). If there is any specific subject you’d like to know about, post the questions [here](https://forum.babylonjs.com/t/babylon-next-js-setup-optimized-for-seo-load-speed-developer-experience/27412). They will make the next subject to write about.

> [@Anupam\_Das](#):
>
> architectural approaches to building with babylon

For state management of non-game apps, a unidirectional data flow has proven itself again and again. I built from Photoshops-like Map editing app, to trading bots with the same architecture. Babylon is no exception, this [3D configurator](https://3designer.app/) (under development) uses:

```auto
Redux -> React -> Babylon ─┐
<──────────────────────────┘

```

data flow in declarative style. It loads/saves/updates any 3D project with pure json data and CDN files, just like you would with classic product pages.

This way it is completely decoupled, and yet fully integrated with Babylon. In other words, it’s platform agnostic, be it on the web, native iOS, Android, or desktop environments.

And it produces blazing fast applications that scale almost automatically. For example, most 3D planner apps I’ve tried on the web are quite laggy in responsiveness (there is a noticeable lag from your click to UI update). With proper architecture, you have butter smooth experience like Apple software.

This subject is too deep for a single post reply. It deserves a full fledge series of articles by itself. But that is the bird’s eye view.

---

_[View the full topic](https://forum.babylonjs.com/t/secrets-of-babylon-js/27032)._
