V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
这是一个专门讨论 idea 的地方。

每个人的时间,资源是有限的,有的时候你或许能够想到很多 idea,但是由于现实的限制,却并不是所有的 idea 都能够成为现实。

那这个时候,不妨可以把那些 idea 分享出来,启发别人。
python4

利用云上的 ServerLess 函数和 KeyValue ,可以做出哪些有趣的东西?

  •  
  •   python4 · Aug 24, 2021 · 2822 views
    This topic created in 1707 days ago, the information mentioned may be changed or developed.

    上一周,我利用 CloudFlare 的 Workers 和 KV,做了一个简单的 URL Shorten 工具 签签缩短 wqq.pw

    关于这个东东,可以看 这个帖子

    在这个过程中,感觉类似于 CF Workers 这样的环境(还有某家的 SAE),具有一种很便利、轻巧的生产模式。

    想以此来抛砖引玉,吆喝大家探讨一下,采用这些“免费”的环境,还可以创造出哪些有趣的东西?

    也希望能 po 出你的作品供大家品鉴。

    Supplement 1  ·  Aug 27, 2021

    如果发现平台没法使用,输入了网址不出结果,且控制台查看网络请求发现接口响应了以下内容:

    Wake up, Neo!
    Follow the white rabbit...
    

    这是因为我的KV超出了CloudFlare免费的1000次限额😂

    另外写了篇文章介绍怎么搭这玩意,需要自取:

    https://zhuanlan.zhihu.com/p/403337075

    10 replies    2021-08-27 17:15:24 +08:00
    xhelin
        1
    xhelin  
       Aug 24, 2021
    域名是在内涵吴签?
    python4
        2
    python4  
    OP
       Aug 24, 2021
    @xhelin 机了个智😉
    jinchun
        3
    jinchun  
       Aug 24, 2021
    Wake up, Neo!
    Follow the white rabbit...
    python4
        4
    python4  
    OP
       Aug 25, 2021
    @jinchun 昨天因为用户量激增导致 CloudFlare 免费的 1000 次 KV 的存取超出配额了。🤣
    DiamondYuan
        5
    DiamondYuan  
       Aug 25, 2021 via iPhone
    git 的数据库,本质就是一个 kv 。


    key = 文件的 sha1
    value = 文件内容

    根据 value 又可以分成
    commit
    blob
    tree

    可以参考 git 设计应用的数据结构,这样就可以利用任意的 kv 数据库储存数据。
    jsthon
        6
    jsthon  
       Aug 25, 2021
    Cloudflare Workers KV 在中国大陆有节点吗?速度还不错的样子。
    python4
        7
    python4  
    OP
       Aug 26, 2021
    @DiamondYuan 有空研究一下👍
    python4
        8
    python4  
    OP
       Aug 26, 2021
    @jsthon 官方说是在世界各地都有节点
    EchoUtopia
        9
    EchoUtopia  
       Aug 27, 2021
    Wake up, Neo!
    Follow the white rabbit...
    python4
        10
    python4  
    OP
       Aug 27, 2021
    @EchoUtopia 参考 4 楼
    还是那个原因,超出 CloudFlare 的 1000 次限额了🤣
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3295 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 13:20 · PVG 21:20 · LAX 06:20 · JFK 09:20
    ♥ Do have faith in what you're doing.