# advice on generalizing serverless notebook

**URL:** <https://talk.observablehq.com/t/advice-on-generalizing-serverless-notebook/3603>\
**Category:** Help\
**Created:** [July 14, 2020, 2:19am UTC](https://talk.observablehq.com/t/advice-on-generalizing-serverless-notebook/3603 "2020-07-14T02:19:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cornhundred](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cornhundred/32/1705_2.png) [@cornhundred](https://talk.observablehq.com/u/cornhundred)\
**Post date:** [July 14, 2020, 2:19am UTC](https://talk.observablehq.com/t/advice-on-generalizing-serverless-notebook/3603/1 "2020-07-14T02:19:15Z")

</div>

Hi,

I wanted to ask for any advice on how to best generalize the very nice [intro-to-serverless-notebooks](https://observablehq.com/@observablehq/introduction-to-serverless-notebooks) notebook (thus far we’ve generalized to two counters 😃 here [himc-click-counter](https://observablehq.com/@ismms-himc/himc-click-counter)) to build a something that could be used for crowd-sourced categorization of a set of items (e.g. have users categorize single cells in a gene expression dataset).

I was thinking each item could be an entry in our DynamoDB database and users would be able to overwrite the category of the items with their entries.

I’ll update the thread as we progress. Thanks @aaronkyle for help earlier.

Best,  
Nick

---

<div class="post-metadata">

**Author:** ![aaronkyle](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/aaronkyle/32/8106_2.png) [@aaronkyle](https://talk.observablehq.com/u/aaronkyle)\
**Post date:** [July 14, 2020, 11:16pm UTC](https://talk.observablehq.com/t/advice-on-generalizing-serverless-notebook/3603/2 "2020-07-14T23:16:09Z")

</div>

Hi Nick.

I hope others answer here, and if/when my project gets going, I’ll be sure to publish.

Based on your message, I think yes: you will need to write specific client and Lambda functions for each aspect of user interaction. In the case you describe, the pair of functions might be a client function that sends a message with one of a few different input values (like from a drop down menu) and the Lambda might be a ‘write this value’ function that changes the data store. Mike’s example provides both sides.

I don’t know enough about JavaScript or Lambda to write these sorts of things, and [so I am asking for expert help](https://talk.observablehq.com/t/call-for-eoi-to-help-build-an-observable-based-survey-backed-on-aws-as-stateless-notebook/3579). But I don’t imagine there’s too much more than writing 2 sides of one request.

Hopefully others can help more, but if you can give more of an example of what you want to achieve, this would probably help people to give you feedback.

Good luck!
