Skip to main content

Trello software and system design

https://stackoverflow.com/questions/10505431/how-does-trello-show-history-so-quickly?noredirect=1&lq=1
Trello stores all of the cards in one collection. The collection is sharded on the card's board id.

https://stackoverflow.com/questions/12969344/how-does-trello-store-data-in-mongodb-collection-per-board

I'm on the Trello team. We use an Actions collection in our MongoDB instance, with a compound index on the ids of the models to which it refers (a Card is a model, and so is a Member) and the date when the action was performed. No fancy caching or anything, except inasmuch as the index and recently used documents are kept in memory by the DB. Actions is by far our biggest collection.

It is worth mentioning that most of the data needed to display an action is stored denormalized in the action document, so that speeds things up considerably.

https://www.sitepoint.com/fullstack-javascript-trello-clone/

https://blog.fogcreek.com/the-trello-tech-stack/


{
    "model"=>{
        "id"=>"5204523d8d3432ff1a000a60",
        "name"=>"#BOARD",
        "desc"=>"",
        "descData"=>nil,
        "closed"=>false,
        "idOrganization"=>"53aaf6e5309dc12a75111fbf",
        "pinned"=>false,
        "url"=>"https://trello.com/b/ABdAaJeO/board",
        "shortUrl"=>"https://trello.com/b/ABdAaJeO",
        "prefs"=>{
            "permissionLevel"=>"org",
            "voting"=>"disabled",
            "comments"=>"members",
            "invitations"=>"members",
            "selfJoin"=>false,
            "cardCovers"=>true,
            "calendarFeedEnabled"=>true,
            "background"=>"river",
            "backgroundColor"=>nil,
            "backgroundImage"=>"https://d2a2fgsv6pobq6.cloudfront.net/images/backgrounds/river/full.jpg",
            "backgroundImageScaled"=>[
                {
                    "width"=>2400,
                    "height"=>1600,
                    "url"=>"https://d2a2fgsv6pobq6.cloudfront.net/images/backgrounds/river/large.jpg"
                },
                {
                    "width"=>1024,
                    "height"=>683,
                    "url"=>"https://d2a2fgsv6pobq6.cloudfront.net/images/backgrounds/river/medium.jpg"
                },
                {
                    "width"=>320,
                    "height"=>213,
                    "url"=>"https://d2a2fgsv6pobq6.cloudfront.net/images/backgrounds/river/small.jpg"
                }
            ],
            "backgroundTile"=>false,
            "backgroundBrightness"=>"dark",
            "canBePublic"=>true,
            "canBeOrg"=>true,
            "canBePrivate"=>true,
            "canInvite"=>true
        },
        "labelNames"=>{
            "green"=>"",
            "yellow"=>"Тесты",
            "orange"=>"frontend",
            "red"=>"bugs",
            "purple"=>"инфраструктура",
            "blue"=>"backend",
            "sky"=>"проектирование",
            "lime"=>"гипотеза",
            "pink"=>"",
            "black"=>""
        }
    },
    "feature"=>{

    }
}

Comments

Popular posts from this blog

Rand mm 10

https://stackoverflow.com/questions/2447791/define-vs-const Oh const vs define, many time I got unexpected interview question. As this one, I do not know much or try to study this. My work flow, and I believe of many programmer is that search topic only when we have task or job to tackle. We ignore many 'basic', 'fundamental' documents, RTFM is boring. So I think it is a trade off between the two way of study language. And I think there are a bridge or balanced way to extract both advantage of two method. There are some huge issue with programmer like me that prevent we master some technique that take only little time if doing properly. For example, some Red Hat certificate program, lesson, course that I have learned during Collage gave our exceptional useful when it cover almost all topic while working with Linux. I remember it called something like RHEL (RedHat Enterprise Linux) Certificate... I think there are many tons of documents, guide n books about Linux bu

Martin Fowler - Software Architecture - Making Architecture matter

  https://martinfowler.com/architecture/ One can appreciate the point of this presentation when one's sense of code smell is trained, functional and utilized. Those controlling the budget as well as developer leads should understand the design stamina hypothesis, so that the appropriate focus and priority is given to internal quality - otherwise pay a high price soon. Andrew Farrell 8 months ago I love that he was able to give an important lesson on the “How?” of software architecture at the very end: delegate decisions to those with the time to focus on them. Very nice and straight-forward talk about the value of software architecture For me, architecture is the distribution of complexity in a system. And also, how subsystems communicate with each other. A battle between craftmanship and the economics and economics always win... https://hackernoon.com/applying-clean-architecture-on-web-application-with-modular-pattern-7b11f1b89011 1. Independent of Frameworks 2. Testable 3. Indepe